Skip to content

Commit 97bcd68

Browse files
authored
fix: missing updates of sw3abi to v0.6.9 (#5104)
1 parent f191ab0 commit 97bcd68

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

pkg/node/chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func (m noOpChainBackend) Metrics() []prometheus.Collector {
351351
}
352352

353353
func (m noOpChainBackend) CodeAt(context.Context, common.Address, *big.Int) ([]byte, error) {
354-
return common.FromHex(sw3abi.SimpleSwapFactoryDeployedBinv0_6_5), nil
354+
return common.FromHex(sw3abi.SimpleSwapFactoryDeployedBinv0_6_9), nil
355355
}
356356

357357
func (m noOpChainBackend) CallContract(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error) {

pkg/postage/postagecontract/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
var (
2525
BucketDepth = uint8(16)
2626

27-
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_5)
27+
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_9)
2828

2929
ErrBatchCreate = errors.New("batch creation failed")
3030
ErrInsufficientFunds = errors.New("insufficient token balance")

pkg/settlement/swap/chequebook/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
ErrNotDeployedByFactory = errors.New("chequebook not deployed by factory")
2424
errDecodeABI = errors.New("could not decode abi data")
2525

26-
factoryABI = abiutil.MustParseABI(sw3abi.SimpleSwapFactoryABIv0_6_5)
26+
factoryABI = abiutil.MustParseABI(sw3abi.SimpleSwapFactoryABIv0_6_9)
2727
simpleSwapDeployedEventType = factoryABI.Events["SimpleSwapDeployed"]
2828
)
2929

pkg/settlement/swap/chequebook/factory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
)
2222

2323
var (
24-
factoryABI = abiutil.MustParseABI(sw3abi.SimpleSwapFactoryABIv0_6_5)
24+
factoryABI = abiutil.MustParseABI(sw3abi.SimpleSwapFactoryABIv0_6_9)
2525
simpleSwapDeployedEvent = factoryABI.Events["SimpleSwapDeployed"]
2626
)
2727

pkg/settlement/swap/erc20/erc20.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
var (
21-
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_5)
21+
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_9)
2222
errDecodeABI = errors.New("could not decode abi data")
2323
)
2424

pkg/settlement/swap/erc20/erc20_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
var (
20-
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_5)
20+
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_9)
2121
)
2222

2323
func TestBalanceOf(t *testing.T) {

pkg/storageincentives/staking/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
var (
2323
MinimumStakeAmount = big.NewInt(100000000000000000)
2424

25-
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_5)
25+
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_9)
2626

2727
ErrInsufficientStakeAmount = errors.New("insufficient stake amount")
2828
ErrInsufficientFunds = errors.New("insufficient token balance")

pkg/transaction/event_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
var (
20-
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_5)
20+
erc20ABI = abiutil.MustParseABI(sw3abi.ERC20ABIv0_6_9)
2121
)
2222

2323
type transferEvent struct {

0 commit comments

Comments
 (0)