Skip to content

Commit 2232c5b

Browse files
committed
Use UnpackIntoInterface instead of Unpack
After go-ethereum update from 1.9.10 to 1.10.1, we can no longer pass an interface into Unpack function. An alternative is UnpackIntoInterface that does the same as the previous version of Unpack.
1 parent bc21cf1 commit 2232c5b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/chain/ethereum/ethutil/ethutil.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ package ethutil
55
import (
66
"context"
77
"fmt"
8-
"github.com/keep-network/keep-common/pkg/chain/ethlike"
98
"io/ioutil"
109
"math/big"
1110
"time"
1211

12+
"github.com/keep-network/keep-common/pkg/chain/ethlike"
13+
1314
"github.com/ipfs/go-log"
1415

1516
"github.com/ethereum/go-ethereum"
@@ -140,8 +141,7 @@ func CallAtBlock(
140141
}
141142
}
142143

143-
err = contractABI.Unpack(result, method, output)
144-
144+
err = contractABI.UnpackIntoInterface(result, method, output)
145145
if err != nil {
146146
return errorResolver.ResolveError(
147147
err,

0 commit comments

Comments
 (0)