diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index e8daa8b4ad..147546a3c7 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -731,7 +731,7 @@ func TestCopyCommitCopy(t *testing.T) { sval := common.HexToHash("bbb") state.SetBalance(addr, uint256.NewInt(42), tracing.BalanceChangeUnspecified) // Change the account trie - state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata + state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata state.SetState(addr, skey, sval) // Change the storage trie if balance := state.GetBalance(addr); balance.Cmp(uint256.NewInt(42)) != 0 { @@ -804,7 +804,7 @@ func TestCopyCopyCommitCopy(t *testing.T) { sval := common.HexToHash("bbb") state.SetBalance(addr, uint256.NewInt(42), tracing.BalanceChangeUnspecified) // Change the account trie - state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata + state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata state.SetState(addr, skey, sval) // Change the storage trie if balance := state.GetBalance(addr); balance.Cmp(uint256.NewInt(42)) != 0 { @@ -874,7 +874,7 @@ func TestCommitCopy(t *testing.T) { sval1, sval2 := common.HexToHash("b1"), common.HexToHash("b2") state.SetBalance(addr, uint256.NewInt(42), tracing.BalanceChangeUnspecified) // Change the account trie - state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata + state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata state.SetState(addr, skey1, sval1) // Change the storage trie if balance := state.GetBalance(addr); balance.Cmp(uint256.NewInt(42)) != 0 { diff --git a/core/state/trie_prefetcher_test.go b/core/state/trie_prefetcher_test.go index 0ebb3f5593..41349c0c0e 100644 --- a/core/state/trie_prefetcher_test.go +++ b/core/state/trie_prefetcher_test.go @@ -39,7 +39,7 @@ func filledStateDB() *StateDB { sval := common.HexToHash("bbb") state.SetBalance(addr, uint256.NewInt(42), tracing.BalanceChangeUnspecified) // Change the account trie - state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata + state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata state.SetState(addr, skey, sval) // Change the storage trie for i := 0; i < 100; i++ { sk := common.BigToHash(big.NewInt(int64(i))) @@ -81,7 +81,7 @@ func TestVerklePrefetcher(t *testing.T) { sval := testrand.Hash() state.SetBalance(addr, uint256.NewInt(42), tracing.BalanceChangeUnspecified) // Change the account trie - state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata + state.SetCode(addr, []byte("hello"), tracing.CodeChangeUnspecified) // Change an external metadata state.SetState(addr, skey, sval) // Change the storage trie root, _ := state.Commit(0, true, false) diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 8dc1af23b2..cabc57d1fb 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -460,7 +460,7 @@ func BenchmarkSimpleLoop(b *testing.B) { p, lbl = program.New().Jumpdest() callEOA := p. Call(nil, 0xE0, 0, 0, 0, 0, 0). // call addr of EOA - Op(vm.POP).Jump(lbl).Bytes() // pop return value and jump to label + Op(vm.POP).Jump(lbl).Bytes() // pop return value and jump to label p, lbl = program.New().Jumpdest() // Push as if we were making call, then pop it off again, and loop @@ -721,19 +721,19 @@ func TestRuntimeJSTracer(t *testing.T) { }{ { // CREATE code: program.New().MstoreSmall(initcode, 0). - Push(len(initcode)). // length + Push(len(initcode)). // length Push(32 - len(initcode)). // offset - Push(0). // value + Push(0). // value Op(vm.CREATE). Op(vm.POP).Bytes(), results: []string{`"1,1,952853,6,12"`, `"1,1,952853,6,0"`}, }, { // CREATE2 code: program.New().MstoreSmall(initcode, 0). - Push(1). // salt - Push(len(initcode)). // length + Push(1). // salt + Push(len(initcode)). // length Push(32 - len(initcode)). // offset - Push(0). // value + Push(0). // value Op(vm.CREATE2). Op(vm.POP).Bytes(), results: []string{`"1,1,952844,6,13"`, `"1,1,952844,6,0"`},