Skip to content

Commit

Permalink
support xdai on multicall
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstevens19 committed Jun 2, 2021
1 parent d1011cc commit 074d350
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ by default it looks at your network from the provider you passed in and makes th
- kovan > '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696'
- rinkeby > '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696'
- ropsten > '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696'
- binance smart chain > '0xaf379c844f87a7b47ee6fe5e4a9720988eaea0af'
- binance smart chain > '0xAf379C844f87A7b47EE6fe5E4a9720988EaEA0AF'
- xdai > '0x2325b72990D81892E0e09cdE5C80DD221F147F8B'
If you wanted this to point at a different multicall contract address just pass that in the options when creating the multicall instance, example:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-multicall",
"version": "2.2.0",
"version": "2.3.0",
"description": "Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/enums/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export enum Networks {
rinkeby = 4,
bsc = 56,
kovan = 42,
xdai = 100,
}
4 changes: 3 additions & 1 deletion src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ export class Multicall {
case Networks.ropsten:
return '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696';
case Networks.bsc:
return '0xaf379c844f87a7b47ee6fe5e4a9720988eaea0af';
return '0xAf379C844f87A7b47EE6fe5E4a9720988EaEA0AF';
case Networks.xdai:
return '0x2325b72990D81892E0e09cdE5C80DD221F147F8B';
default:
throw new Error(
`Network - ${network} is not got a contract defined it only supports mainnet, kovan, rinkeby, bsc and ropsten`
Expand Down

0 comments on commit 074d350

Please sign in to comment.