Skip to content

Commit

Permalink
Fix TestTxPool_RecoverableError
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 25, 2024
1 parent 397ef42 commit 9bae307
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions e2e/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import (
)

var (
oneEth = framework.EthToWei(1)
signer = crypto.NewSigner(chain.AllForksEnabled.At(0), 100)
oneEth = framework.EthToWei(1)
defaultChainID = uint64(100)
signer = crypto.NewSigner(chain.AllForksEnabled.At(0), defaultChainID)
)

type generateTxReqParams struct {
Expand Down Expand Up @@ -58,7 +59,7 @@ func generateTx(params generateTxReqParams) *types.Transaction {
To: &params.toAddress,
Gas: 1000000,
Value: params.value,
ChainID: big.NewInt(100),
ChainID: new(big.Int).SetUint64(defaultChainID),
})
unsignedTx.SetGasFeeCap(params.gasFeeCap)
unsignedTx.SetGasTipCap(params.gasTipCap)
Expand Down Expand Up @@ -264,7 +265,7 @@ func TestTxPool_RecoverableError(t *testing.T) {
Gas: 22000,
To: &receiverAddress,
Value: oneEth,
ChainID: big.NewInt(0),
ChainID: new(big.Int).SetUint64(defaultChainID),
V: big.NewInt(27),
}),
}
Expand Down

0 comments on commit 9bae307

Please sign in to comment.