diff --git a/wallet/nonce.go b/wallet/nonce.go index e01774f..7c14bfd 100644 --- a/wallet/nonce.go +++ b/wallet/nonce.go @@ -19,8 +19,6 @@ package wallet import ( "context" - "math/big" - "github.com/ethereum/go-ethereum/common" "github.com/polynetwork/bridge-common/chains/eth" ) @@ -40,7 +38,7 @@ type RemoteNonceProvider struct { } func (p *RemoteNonceProvider) Acquire() (uint64, error) { - return p.sdk.Node().NonceAt(context.Background(), p.address, big.NewInt(-1)) + return p.sdk.Node().NonceAt(context.Background(), p.address, nil) } func (p *RemoteNonceProvider) Update(success bool) {