Skip to content

Commit

Permalink
UTs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Feb 25, 2024
1 parent 3b7ea42 commit e5aba84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gasprice/gasprice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
To: &types.ZeroAddress,
GasTipCap: ethgo.Gwei(uint64(rand.Intn(200))),
GasFeeCap: ethgo.Gwei(uint64(rand.Intn(200) + 200)),
ChainID: big.NewInt(backend.Config().ChainID),
})

tx, err := signer.SignTx(tx, senderKey)
Expand Down Expand Up @@ -224,6 +225,7 @@ func createTestTxs(t *testing.T, backend *backendMock, numOfTxsPerBlock, txCap i
To: &types.ZeroAddress,
GasTipCap: ethgo.Gwei(uint64(rand.Intn(txCap))),
GasFeeCap: ethgo.Gwei(uint64(rand.Intn(txCap) + txCap)),
ChainID: big.NewInt(backend.Config().ChainID),
})

tx, err := signer.SignTx(tx, senderKey)
Expand Down
6 changes: 4 additions & 2 deletions jsonrpc/testsuite/block-with-txn-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"blockHash": "0x7935c790bdff1ec20912f28c9f7722eed41837c478a1f9ce0dc49f5d4a2d7c88",
"blockNumber": "0x14",
"transactionIndex": "0x0",
"type": "0x0"
"type": "0x0",
"chainId": "0x7fffffffffffffef"
},
{
"nonce": "0x0",
Expand All @@ -50,7 +51,8 @@
"blockHash": "0x7935c790bdff1ec20912f28c9f7722eed41837c478a1f9ce0dc49f5d4a2d7c88",
"blockNumber": "0x14",
"transactionIndex": "0x1",
"type": "0x0"
"type": "0x0",
"chainId": "0x7fffffffffffffef"
}
],
"uncles": [],
Expand Down

0 comments on commit e5aba84

Please sign in to comment.