From 9bae3073e006ac5603e1b32290738c4f370fe675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Sun, 25 Feb 2024 20:50:25 +0100 Subject: [PATCH] Fix TestTxPool_RecoverableError --- e2e/txpool_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e2e/txpool_test.go b/e2e/txpool_test.go index 8b19d5434c..9f9f0c994f 100644 --- a/e2e/txpool_test.go +++ b/e2e/txpool_test.go @@ -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 { @@ -58,7 +59,7 @@ func generateTx(params generateTxReqParams) *types.Transaction { To: ¶ms.toAddress, Gas: 1000000, Value: params.value, - ChainID: big.NewInt(100), + ChainID: new(big.Int).SetUint64(defaultChainID), }) unsignedTx.SetGasFeeCap(params.gasFeeCap) unsignedTx.SetGasTipCap(params.gasTipCap) @@ -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), }), }