style: fix goimports formatting in metrics files

Align struct field comments and json tags per goimports rules.
This commit is contained in:
CPerezz 2026-01-25 18:49:39 +01:00
parent 690e526c30
commit 69aabdda64
No known key found for this signature in database
GPG key ID: 62045F34B97177DD
2 changed files with 7 additions and 7 deletions

View file

@ -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),
}

View file

@ -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,