@@ -580,7 +580,7 @@ func TestInstantiate(t *testing.T) {
580
580
res , cost , err := Instantiate (cache , checksum , env , info , msg , & igasMeter , store , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
581
581
require .NoError (t , err )
582
582
requireOkResponse (t , res , 0 )
583
- require .Equal (t , uint64 (0xd35950 ), cost .UsedInternally )
583
+ require .Equal (t , uint64 (0xd915fc ), cost .UsedInternally )
584
584
585
585
var result types.ContractResult
586
586
err = json .Unmarshal (res , & result )
@@ -611,7 +611,7 @@ func TestExecute(t *testing.T) {
611
611
diff := time .Since (start )
612
612
require .NoError (t , err )
613
613
requireOkResponse (t , res , 0 )
614
- require .Equal (t , uint64 (0xd35950 ), cost .UsedInternally )
614
+ require .Equal (t , uint64 (0xd915fc ), cost .UsedInternally )
615
615
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
616
616
617
617
// execute with the same store
@@ -624,7 +624,7 @@ func TestExecute(t *testing.T) {
624
624
res , cost , err = Execute (cache , checksum , env , info , []byte (`{"release":{}}` ), & igasMeter2 , store , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
625
625
diff = time .Since (start )
626
626
require .NoError (t , err )
627
- require .Equal (t , uint64 (0x16057d3 ), cost .UsedInternally )
627
+ require .Equal (t , uint64 (0x1669008 ), cost .UsedInternally )
628
628
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
629
629
630
630
// make sure it read the balance properly and we got 250 atoms
@@ -731,7 +731,7 @@ func TestExecuteCpuLoop(t *testing.T) {
731
731
diff := time .Since (start )
732
732
require .NoError (t , err )
733
733
requireOkResponse (t , res , 0 )
734
- require .Equal (t , uint64 (0x895c33 ), cost .UsedInternally )
734
+ require .Equal (t , uint64 (0x8f2a64 ), cost .UsedInternally )
735
735
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
736
736
737
737
// execute a cpu loop
@@ -973,7 +973,7 @@ func TestMultipleInstances(t *testing.T) {
973
973
require .NoError (t , err )
974
974
requireOkResponse (t , res , 0 )
975
975
// we now count wasm gas charges and db writes
976
- assert .Equal (t , uint64 (0xd2189c ), cost .UsedInternally )
976
+ assert .Equal (t , uint64 (0xd7d548 ), cost .UsedInternally )
977
977
978
978
// instance2 controlled by mary
979
979
gasMeter2 := NewMockGasMeter (TESTING_GAS_LIMIT )
@@ -984,14 +984,14 @@ func TestMultipleInstances(t *testing.T) {
984
984
res , cost , err = Instantiate (cache , checksum , env , info , msg , & igasMeter2 , store2 , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
985
985
require .NoError (t , err )
986
986
requireOkResponse (t , res , 0 )
987
- assert .Equal (t , uint64 (0xd2ce86 ), cost .UsedInternally )
987
+ assert .Equal (t , uint64 (0xd88b32 ), cost .UsedInternally )
988
988
989
989
// fail to execute store1 with mary
990
- resp := exec (t , cache , checksum , "mary" , store1 , api , querier , 0xbe8534 )
990
+ resp := exec (t , cache , checksum , "mary" , store1 , api , querier , 0xc441e0 )
991
991
require .Equal (t , "Unauthorized" , resp .Err )
992
992
993
993
// succeed to execute store1 with fred
994
- resp = exec (t , cache , checksum , "fred" , store1 , api , querier , 0x15fce67 )
994
+ resp = exec (t , cache , checksum , "fred" , store1 , api , querier , 0x166069c )
995
995
require .Empty (t , resp .Err )
996
996
require .Len (t , resp .Ok .Messages , 1 )
997
997
attributes := resp .Ok .Attributes
@@ -1000,7 +1000,7 @@ func TestMultipleInstances(t *testing.T) {
1000
1000
require .Equal (t , "bob" , attributes [1 ].Value )
1001
1001
1002
1002
// succeed to execute store2 with mary
1003
- resp = exec (t , cache , checksum , "mary" , store2 , api , querier , 0x160131d )
1003
+ resp = exec (t , cache , checksum , "mary" , store2 , api , querier , 0x1664b52 )
1004
1004
require .Empty (t , resp .Err )
1005
1005
require .Len (t , resp .Ok .Messages , 1 )
1006
1006
attributes = resp .Ok .Attributes
0 commit comments