@@ -65,7 +65,7 @@ func TestUpdateLeaks(t *testing.T) {
6565 state .SetState (addr , common .BytesToHash ([]byte {i , i , i }), common .BytesToHash ([]byte {i , i , i , i }))
6666 }
6767 if i % 3 == 0 {
68- state .SetCode (addr , []byte {i , i , i , i , i })
68+ state .SetCode (addr , []byte {i , i , i , i , i }, tracing . CodeChangeUnspecified )
6969 }
7070 }
7171
@@ -101,7 +101,7 @@ func TestIntermediateLeaks(t *testing.T) {
101101 state .SetState (addr , common.Hash {i , i , i , tweak }, common.Hash {i , i , i , i , tweak })
102102 }
103103 if i % 3 == 0 {
104- state .SetCode (addr , []byte {i , i , i , i , i , tweak })
104+ state .SetCode (addr , []byte {i , i , i , i , i , tweak }, tracing . CodeChangeUnspecified )
105105 }
106106 }
107107
@@ -374,7 +374,7 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction {
374374 code := make ([]byte , 16 )
375375 binary .BigEndian .PutUint64 (code , uint64 (a .args [0 ]))
376376 binary .BigEndian .PutUint64 (code [8 :], uint64 (a .args [1 ]))
377- s .SetCode (addr , code )
377+ s .SetCode (addr , code , tracing . CodeChangeUnspecified )
378378 },
379379 args : make ([]int64 , 2 ),
380380 },
@@ -403,7 +403,7 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction {
403403 // which would cause a difference in state when unrolling
404404 // the journal. (CreateContact assumes created was false prior to
405405 // invocation, and the journal rollback sets it to false).
406- s .SetCode (addr , []byte {1 })
406+ s .SetCode (addr , []byte {1 }, tracing . CodeChangeUnspecified )
407407 }
408408 },
409409 },
@@ -731,7 +731,7 @@ func TestCopyCommitCopy(t *testing.T) {
731731 sval := common .HexToHash ("bbb" )
732732
733733 state .SetBalance (addr , uint256 .NewInt (42 ), tracing .BalanceChangeUnspecified ) // Change the account trie
734- state .SetCode (addr , []byte ("hello" )) // Change an external metadata
734+ state .SetCode (addr , []byte ("hello" ), tracing . CodeChangeUnspecified ) // Change an external metadata
735735 state .SetState (addr , skey , sval ) // Change the storage trie
736736
737737 if balance := state .GetBalance (addr ); balance .Cmp (uint256 .NewInt (42 )) != 0 {
@@ -804,7 +804,7 @@ func TestCopyCopyCommitCopy(t *testing.T) {
804804 sval := common .HexToHash ("bbb" )
805805
806806 state .SetBalance (addr , uint256 .NewInt (42 ), tracing .BalanceChangeUnspecified ) // Change the account trie
807- state .SetCode (addr , []byte ("hello" )) // Change an external metadata
807+ state .SetCode (addr , []byte ("hello" ), tracing . CodeChangeUnspecified ) // Change an external metadata
808808 state .SetState (addr , skey , sval ) // Change the storage trie
809809
810810 if balance := state .GetBalance (addr ); balance .Cmp (uint256 .NewInt (42 )) != 0 {
@@ -874,7 +874,7 @@ func TestCommitCopy(t *testing.T) {
874874 sval1 , sval2 := common .HexToHash ("b1" ), common .HexToHash ("b2" )
875875
876876 state .SetBalance (addr , uint256 .NewInt (42 ), tracing .BalanceChangeUnspecified ) // Change the account trie
877- state .SetCode (addr , []byte ("hello" )) // Change an external metadata
877+ state .SetCode (addr , []byte ("hello" ), tracing . CodeChangeUnspecified ) // Change an external metadata
878878 state .SetState (addr , skey1 , sval1 ) // Change the storage trie
879879
880880 if balance := state .GetBalance (addr ); balance .Cmp (uint256 .NewInt (42 )) != 0 {
@@ -987,10 +987,10 @@ func testMissingTrieNodes(t *testing.T, scheme string) {
987987 addr := common .BytesToAddress ([]byte ("so" ))
988988 {
989989 state .SetBalance (addr , uint256 .NewInt (1 ), tracing .BalanceChangeUnspecified )
990- state .SetCode (addr , []byte {1 , 2 , 3 })
990+ state .SetCode (addr , []byte {1 , 2 , 3 }, tracing . CodeChangeUnspecified )
991991 a2 := common .BytesToAddress ([]byte ("another" ))
992992 state .SetBalance (a2 , uint256 .NewInt (100 ), tracing .BalanceChangeUnspecified )
993- state .SetCode (a2 , []byte {1 , 2 , 4 })
993+ state .SetCode (a2 , []byte {1 , 2 , 4 }, tracing . CodeChangeUnspecified )
994994 root , _ = state .Commit (0 , false , false )
995995 t .Logf ("root: %x" , root )
996996 // force-flush
0 commit comments