diff --git a/core/blockchain_metrics_test.go b/core/blockchain_metrics_test.go index 59349df8ca..1e0784dbba 100644 --- a/core/blockchain_metrics_test.go +++ b/core/blockchain_metrics_test.go @@ -55,12 +55,12 @@ func TestAccountMetrics(t *testing.T) { // Generate block with simple ETH transfer _, blocks, _ := GenerateChainWithGenesis(gspec, engine, 1, func(i int, b *BlockGen) { tx, _ := types.SignTx(types.NewTransaction( - 0, // nonce - receiver, // to - big.NewInt(1000), // value - 21000, // gas + 0, // nonce + receiver, // to + big.NewInt(1000), // value + 21000, // gas uint256.MustFromBig(newGwei(5)).ToBig(), // gasPrice - nil, // data + nil, // data ), signer, key) b.AddTx(tx) }) @@ -373,7 +373,7 @@ func TestCodeUpdatedMetricCREATE(t *testing.T) { byte(vm.PUSH1), 0x00, byte(vm.MSTORE), byte(vm.PUSH1), byte(runtimeLen), // size - byte(vm.PUSH1), 0x1c, // offset (32 - 4 = 28 = 0x1c) + byte(vm.PUSH1), 0x1c, // offset (32 - 4 = 28 = 0x1c) byte(vm.RETURN), } diff --git a/core/blockchain_stats_test.go b/core/blockchain_stats_test.go index 7e7663d37b..269168fde1 100644 --- a/core/blockchain_stats_test.go +++ b/core/blockchain_stats_test.go @@ -193,7 +193,7 @@ func TestLogSlowBlockEIP7702(t *testing.T) { AccountLoaded: 100, StorageLoaded: 500, CodeLoaded: 20, - CodeBytesRead: 4096, + CodeLoadBytes: 4096, AccountUpdated: 50, AccountDeleted: 2, StorageUpdated: 200,