@@ -485,7 +485,7 @@ func TestInstantiate(t *testing.T) {
485
485
res , cost , err := Instantiate (cache , checksum , env , info , msg , & igasMeter , store , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
486
486
require .NoError (t , err )
487
487
requireOkResponse (t , res , 0 )
488
- assert .Equal (t , uint64 (0x8c288c ), cost .UsedInternally )
488
+ assert .Equal (t , uint64 (0xb1fe27 ), cost .UsedInternally )
489
489
490
490
var result types.ContractResult
491
491
err = json .Unmarshal (res , & result )
@@ -516,7 +516,7 @@ func TestExecute(t *testing.T) {
516
516
diff := time .Since (start )
517
517
require .NoError (t , err )
518
518
requireOkResponse (t , res , 0 )
519
- assert .Equal (t , uint64 (0x8c288c ), cost .UsedInternally )
519
+ assert .Equal (t , uint64 (0xb1fe27 ), cost .UsedInternally )
520
520
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
521
521
522
522
// execute with the same store
@@ -529,7 +529,7 @@ func TestExecute(t *testing.T) {
529
529
res , cost , err = Execute (cache , checksum , env , info , []byte (`{"release":{}}` ), & igasMeter2 , store , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
530
530
diff = time .Since (start )
531
531
require .NoError (t , err )
532
- assert .Equal (t , uint64 (0xfaea3d ), cost .UsedInternally )
532
+ assert .Equal (t , uint64 (0x1416da5 ), cost .UsedInternally )
533
533
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
534
534
535
535
// make sure it read the balance properly and we got 250 atoms
@@ -637,7 +637,7 @@ func TestExecuteCpuLoop(t *testing.T) {
637
637
diff := time .Since (start )
638
638
require .NoError (t , err )
639
639
requireOkResponse (t , res , 0 )
640
- assert .Equal (t , uint64 (0x64fb31 ), cost .UsedInternally )
640
+ assert .Equal (t , uint64 (0x79f527 ), cost .UsedInternally )
641
641
t .Logf ("Time (%d gas): %s\n " , cost .UsedInternally , diff )
642
642
643
643
// execute a cpu loop
@@ -866,7 +866,7 @@ func TestMultipleInstances(t *testing.T) {
866
866
require .NoError (t , err )
867
867
requireOkResponse (t , res , 0 )
868
868
// we now count wasm gas charges and db writes
869
- assert .Equal (t , uint64 (0x8b0ca4 ), cost .UsedInternally )
869
+ assert .Equal (t , uint64 (0xb0c2cd ), cost .UsedInternally )
870
870
871
871
// instance2 controlled by mary
872
872
gasMeter2 := NewMockGasMeter (TESTING_GAS_LIMIT )
@@ -877,14 +877,14 @@ func TestMultipleInstances(t *testing.T) {
877
877
res , cost , err = Instantiate (cache , checksum , env , info , msg , & igasMeter2 , store2 , api , & querier , TESTING_GAS_LIMIT , TESTING_PRINT_DEBUG )
878
878
require .NoError (t , err )
879
879
requireOkResponse (t , res , 0 )
880
- assert .Equal (t , uint64 (0x8baa51 ), cost .UsedInternally )
880
+ assert .Equal (t , uint64 (0xb1760a ), cost .UsedInternally )
881
881
882
882
// fail to execute store1 with mary
883
- resp := exec (t , cache , checksum , "mary" , store1 , api , querier , 0x85e616 )
883
+ resp := exec (t , cache , checksum , "mary" , store1 , api , querier , 0xa7c5ce )
884
884
require .Equal (t , "Unauthorized" , resp .Err )
885
885
886
886
// succeed to execute store1 with fred
887
- resp = exec (t , cache , checksum , "fred" , store1 , api , querier , 0xfa70f3 )
887
+ resp = exec (t , cache , checksum , "fred" , store1 , api , querier , 0x140e8ad )
888
888
require .Equal (t , "" , resp .Err )
889
889
require .Equal (t , 1 , len (resp .Ok .Messages ))
890
890
attributes := resp .Ok .Attributes
@@ -893,7 +893,7 @@ func TestMultipleInstances(t *testing.T) {
893
893
require .Equal (t , "bob" , attributes [1 ].Value )
894
894
895
895
// succeed to execute store2 with mary
896
- resp = exec (t , cache , checksum , "mary" , store2 , api , querier , 0xfaad98 )
896
+ resp = exec (t , cache , checksum , "mary" , store2 , api , querier , 0x1412b29 )
897
897
require .Equal (t , "" , resp .Err )
898
898
require .Equal (t , 1 , len (resp .Ok .Messages ))
899
899
attributes = resp .Ok .Attributes
0 commit comments