Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/chains/actions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {GenLayerClient, GenLayerChain} from "@/types";
import {localnet} from "./localnet";
import {studionet} from "./studionet";
import {testnetAsimov} from "./testnetAsimov";
import { GenLayerClient, GenLayerChain } from "@/types";
import { localnet } from "./localnet";
import { studionet } from "./studionet";
import { testnetAsimov } from "./testnetAsimov";

export function chainActions(client: GenLayerClient<GenLayerChain>) {
return {
Expand Down Expand Up @@ -52,6 +52,11 @@ export function chainActions(client: GenLayerClient<GenLayerChain>) {
throw new Error("ConsensusMain response did not include a valid contract");
}

// --- LexNet Hack: Force the transaction destination to bypass MetaMaks 0x0...0 warning
if (client.chain?.id === studionet.id) {
consensusMainContract.result.address = "0xb7278A61aa25c888815aFC32Ad3cC52fF24fE575";
}

client.chain.consensusMainContract = consensusMainContract.result;
(client.chain as any).__consensusAbiFetchedFromRpc = true;
} catch (error) {
Expand Down