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: override multicall3 for sonic in viem chain definition #543

Merged
merged 1 commit into from
Dec 18, 2024
Merged
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
17 changes: 16 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,24 @@ import {
sepolia,
mode,
fraxtal,
sonic
sonic as sonicOriginal,
} from 'viem/chains';

const sonicContractsWithMulticall3 = {
// TODO: there are other missing contract properties in sonic definition in the current viem/wagmi version
// They could cause other issues ()
...sonicOriginal.contracts,
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 598328,
},
};

export const sonic: Chain = {
...sonicOriginal,
contracts: sonicContractsWithMulticall3,
} as Chain;

export const ZERO_ADDRESS: Address =
'0x0000000000000000000000000000000000000000';
/*
Expand Down
Loading