From 8c95610e71db0e7ad903ecdcde8c872c5c42d9f6 Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Thu, 11 Apr 2024 10:11:05 +0800 Subject: [PATCH] add multical contract for blast and nova --- data/networks.ts | 6 ++++++ store/onboard.ts | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/data/networks.ts b/data/networks.ts index 0f66ecf3f..198392bb9 100644 --- a/data/networks.ts +++ b/data/networks.ts @@ -49,6 +49,12 @@ export const blast = /*#__PURE__*/ defineChain({ url: "https://blastscan.io/", }, }, + contracts: { + multicall3: { + address: "0xcA11bde05977b3631167028862bE2a173976CA11", + blockCreated: 212929, + }, + }, }); export const l1Networks = { diff --git a/store/onboard.ts b/store/onboard.ts index bbb250c24..401eecb9e 100644 --- a/store/onboard.ts +++ b/store/onboard.ts @@ -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, @@ -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 = () => {