Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add multical contract for blast and nova #94

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
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
add multical contract for blast and nova
  • Loading branch information
MickWang committed Apr 11, 2024
commit 8c95610e71db0e7ad903ecdcde8c872c5c42d9f6
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
Loading