Skip to content

Commit e4b0e7f

Browse files
Merge pull request #63 from omahs/master
feat: add scroll + fix typos
2 parents 44300dd + 975a36d commit e4b0e7f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ethereum-multicall is fully written in typescript so has full compile time suppo
1111

1212
## Supports
1313

14-
The below networks are supported by default, and custom networks can be supported by providing your own instance a deployed Multicall contract.
14+
The below networks are supported by default, and custom networks can be supported by providing your own instance of a deployed Multicall contract.
1515

1616
| Chain | Chain ID |
1717
| ----------------------- | ---------- |
@@ -66,6 +66,7 @@ The below networks are supported by default, and custom networks can be supporte
6666
| Etherlite | 111 |
6767
| Linea Testnet | 59140 |
6868
| Linea | 59144 |
69+
| Scroll | 534352 |
6970

7071
## Installation
7172

@@ -87,7 +88,7 @@ $ yarn add ethereum-multicall
8788

8889
As the [official docs mentions here](https://docs.ethers.io/v3/api-contract.html#prototype):
8990

90-
> Due to signature overloading, multiple functions can have the same name. The first function specifed in the ABI will be bound to its name. To access overloaded functions, use the full typed signature of the functions (e.g. contract["foobar(address,uint256)"]).
91+
> Due to signature overloading, multiple functions can have the same name. The first function specified in the ABI will be bound to its name. To access overloaded functions, use the full typed signature of the functions (e.g. contract["foobar(address,uint256)"]).
9192
9293
So, when creating the contract call context, under the calls array property we should have that in mind and use the method signature rather than the method name. E.g.
9394

@@ -375,7 +376,7 @@ console.log(results);
375376
376377
### passing extra context to the call
377378
378-
If you want store any context or state so you don't need to look back over arrays once you got the result back. it can be stored in `context` within `ContractCallContext`.
379+
If you want to store any context or state so you don't need to look back over arrays once you got the result back. it can be stored in `context` within `ContractCallContext`.
379380
380381
```ts
381382
import {

src/enums/networks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ export enum Networks {
5050
etherlite = 111,
5151
lineaTestnet = 59140,
5252
linea = 59144,
53+
scroll = 534352,
5354
}

src/multicall.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ export class Multicall {
596596
case Networks.kcc:
597597
case Networks.lineaTestnet:
598598
case Networks.linea:
599+
case Networks.scroll:
599600
return '0xcA11bde05977b3631167028862bE2a173976CA11';
600601
case Networks.etherlite:
601602
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';

0 commit comments

Comments
 (0)