Skip to content

Commit

Permalink
Merge pull request #94 from zkLinkProtocol/fix/blast_multicall
Browse files Browse the repository at this point in the history
fix: add multical contract for blast and nova
  • Loading branch information
zkLeonardo authored Apr 11, 2024
2 parents e2af901 + 8c95610 commit 73f4054
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions data/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export const blast = /*#__PURE__*/ defineChain({
url: "https://blastscan.io/",
},
},
contracts: {
multicall3: {
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
blockCreated: 212929,
},
},
});

export const l1Networks = {
Expand Down
10 changes: 9 additions & 1 deletion store/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { useNetworkStore } from "@/store/network";

export const useOnboardStore = defineStore("onboard", () => {
const { zkSyncNetworks } = useNetworks();

const runtimeConfig = useRuntimeConfig();
const createZkLinkNova = (network: ZkSyncNetwork) => {
return {
id: network.id,
Expand All @@ -41,6 +41,14 @@ export const useOnboardStore = defineStore("onboard", () => {
blockExplorers: {
default: { name: "zkLink Nova Explorer", url: "https://explorer.zklink.io" },
},
contracts: {
multicall3: {
address:
runtimeConfig.public.nodeType === "nexus-goerli"
? "0x6F02406FC2495171dC03c7b6D80c2f327320C3f6"
: "0x825267E0fA5CAe92F98540828a54198dcB3Eaeb5",
},
},
};
};
const getAllChains = () => {
Expand Down

0 comments on commit 73f4054

Please sign in to comment.