Skip to content

Commit 986ea18

Browse files
maouehRampex1
authored andcommitted
core/tracing: stringer for gas and nonce change reasons (ethereum#31234)
1 parent 2725a85 commit 986ea18

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

core/state/statedb_hooked_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ func TestHooks(t *testing.T) {
8383
inner.SetTxContext(common.Hash{0x11}, 100) // For the log
8484
var result []string
8585
var wants = []string{
86-
"0xaa00000000000000000000000000000000000000.balance: 0->100 (BalanceChangeUnspecified)",
87-
"0xaa00000000000000000000000000000000000000.balance: 100->50 (BalanceChangeTransfer)",
86+
"0xaa00000000000000000000000000000000000000.balance: 0->100 (Unspecified)",
87+
"0xaa00000000000000000000000000000000000000.balance: 100->50 (Transfer)",
8888
"0xaa00000000000000000000000000000000000000.nonce: 0->1337",
8989
"0xaa00000000000000000000000000000000000000.code: (0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470) ->0x1325 (0xa12ae05590de0c93a00bc7ac773c2fdb621e44f814985e72194f921c0050f728)",
9090
"0xaa00000000000000000000000000000000000000.storage slot 0x0000000000000000000000000000000000000000000000000000000000000001: 0x0000000000000000000000000000000000000000000000000000000000000000 ->0x0000000000000000000000000000000000000000000000000000000000000011",

core/tracing/gen_balance_change_reason_stringer.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/tracing/gen_nonce_change_reason_stringer.go

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)