Skip to content

Commit

Permalink
upgrade(abi): Multicall v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Himitsuko committed Jun 24, 2022
1 parent 02dc9c1 commit aaa8485
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 322 deletions.
4 changes: 2 additions & 2 deletions call/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Contract struct {
rawMethods map[string]string
methods []Method
calls []core.Call
multiCaller *core.MultiCaller
multiCaller *core.Caller
}

func NewContractBuilder() ContractBuilder {
Expand Down Expand Up @@ -76,7 +76,7 @@ func (a *Contract) Build() *Contract {
}

func (a *Contract) AtAddress(address string) ContractBuilder {
caller, err := core.NewMultiCaller(a.ethClient, common.HexToAddress(address))
caller, err := core.NewCaller(a.ethClient, common.HexToAddress(address))
if err != nil {
panic(err)
}
Expand Down
Loading

0 comments on commit aaa8485

Please sign in to comment.