From 09e124e40dc75711cf28506d2eb40cd9e5fd6137 Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Fri, 10 Feb 2023 14:00:30 +0800 Subject: [PATCH] fix call_api_cmd_halley.move --- .../tests/cases/call_api_cmd_halley.exp | 9 ++------- .../tests/cases/call_api_cmd_halley.move | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp index 0684e73322..d4e78abd13 100644 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp +++ b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp @@ -2,11 +2,6 @@ processed 4 tasks task 3 'run'. lines 7-14: { - "gas_used": 0, - "status": { - "Discard": { - "status_code": "26", - "status_code_name": "FEATURE_UNDER_GATING" - } - } + "gas_used": 10399, + "status": "Executed" } diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move index 309b14809e..e35fab2f64 100644 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move +++ b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move @@ -9,6 +9,6 @@ script{ use StarcoinFramework::Vector; fun main(_sender: signer, block_number: u64, block_hash: vector){ assert!(block_number == 1, 1000); - assert!(Vector::length(&block_hash) == 32, 1001); + assert!(Vector::length(&block_hash) > 32, 1001); } } \ No newline at end of file