Skip to content

Commit 712cc31

Browse files
committed
Update gas values in tests
1 parent 18fea2a commit 712cc31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/lib_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func TestInstantiate(t *testing.T) {
319319
res, cost, err := Instantiate(cache, checksum, env, info, msg, &igasMeter, store, api, &querier, TESTING_GAS_LIMIT, TESTING_PRINT_DEBUG)
320320
require.NoError(t, err)
321321
requireOkResponse(t, res, 0)
322-
assert.Equal(t, uint64(0x12dbfa210), cost)
322+
assert.Equal(t, uint64(0x12dcb13c0), cost)
323323

324324
var result types.ContractResult
325325
err = json.Unmarshal(res, &result)
@@ -350,7 +350,7 @@ func TestExecute(t *testing.T) {
350350
diff := time.Now().Sub(start)
351351
require.NoError(t, err)
352352
requireOkResponse(t, res, 0)
353-
assert.Equal(t, uint64(0x12dbfa210), cost)
353+
assert.Equal(t, uint64(0x12dcb13c0), cost)
354354
t.Logf("Time (%d gas): %s\n", cost, diff)
355355

356356
// execute with the same store
@@ -414,7 +414,7 @@ func TestExecuteCpuLoop(t *testing.T) {
414414
diff := time.Now().Sub(start)
415415
require.NoError(t, err)
416416
requireOkResponse(t, res, 0)
417-
assert.Equal(t, uint64(0x12dbfa210), cost)
417+
assert.Equal(t, uint64(0x12dcb13c0), cost)
418418
t.Logf("Time (%d gas): %s\n", cost, diff)
419419

420420
// execute a cpu loop
@@ -565,7 +565,7 @@ func TestMultipleInstances(t *testing.T) {
565565
require.NoError(t, err)
566566
requireOkResponse(t, res, 0)
567567
// we now count wasm gas charges and db writes
568-
assert.Equal(t, uint64(0x12b9c9b00), cost)
568+
assert.Equal(t, uint64(0x12ba80cb0), cost)
569569

570570
// instance2 controlled by mary
571571
gasMeter2 := NewMockGasMeter(TESTING_GAS_LIMIT)
@@ -576,10 +576,10 @@ func TestMultipleInstances(t *testing.T) {
576576
res, cost, err = Instantiate(cache, checksum, env, info, msg, &igasMeter2, store2, api, &querier, TESTING_GAS_LIMIT, TESTING_PRINT_DEBUG)
577577
require.NoError(t, err)
578578
requireOkResponse(t, res, 0)
579-
assert.Equal(t, uint64(0x12cd87660), cost)
579+
assert.Equal(t, uint64(0x12ce3e810), cost)
580580

581581
// fail to execute store1 with mary
582-
resp := exec(t, cache, checksum, "mary", store1, api, querier, 0x114691bc0)
582+
resp := exec(t, cache, checksum, "mary", store1, api, querier, 0x1145ff400)
583583
require.Equal(t, "Unauthorized", resp.Err)
584584

585585
// succeed to execute store1 with fred

0 commit comments

Comments
 (0)