diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.exp b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.exp deleted file mode 100644 index 6d1cfb7a18..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.exp +++ /dev/null @@ -1,13 +0,0 @@ -processed 10 tasks - -task 5 'run'. lines 11-19: -{ - "gas_used": 11125, - "status": "Executed" -} - -task 9 'run'. lines 27-33: -{ - "gas_used": 8699, - "status": "Executed" -} diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.move.ignored b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.move.ignored deleted file mode 100644 index bbb14cce5d..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd.move.ignored +++ /dev/null @@ -1,33 +0,0 @@ -//# init -n dev - -//# faucet --addr creator --amount 100000000000 - -//# block --author=0x2 - -//# call-api chain.get_block_by_number [1] - -//# call-api state.get_with_proof_by_root_raw ["0x1/1/0x1::account::Account","{{$.call-api[0].header.state_root}}"] - -//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}" --args "{{$.call-api[1]}}" -script{ - use std::vector; - fun main(_sender: signer, block_number: u64, block_hash: vector, state_proof: vector){ - assert!(block_number == 1, 1000); - assert!(vector::length(&block_hash) == 32, 1001); - assert!(vector::length(&state_proof) > 32, 1002); - } -} - -//# call-api chain.info - -//# block --author=0x3 - -//# call-api chain.info - -//# run --signers creator --args b"{{$.call-api[2].head.block_hash}}" --args "{{$.call-api[3].head.parent_hash}}" -script { - fun latest(_account: signer, parent_hash: vector, expect_parent_hash: vector) { - assert!(parent_hash == expect_parent_hash, 1003) - } -} -// check: EXECUTED \ No newline at end of file diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.exp b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.exp deleted file mode 100644 index 6cd67db3f6..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.exp +++ /dev/null @@ -1 +0,0 @@ -processed 1 task diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.move b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.move deleted file mode 100644 index cda21e6965..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_barnard.move +++ /dev/null @@ -1,18 +0,0 @@ -//# init -n dev - -// TODO: this test need the new StateApi `get_state_node_by_node_hash` updated on barnard net. -// //# init --rpc http://barnard.seed.starcoin.org --block-number 6487000 - -// //# faucet --addr creator --amount 100000000000 - -// //# call-api chain.get_block_by_number [6487000] - -// //# run --signers creator --args {{$.call-api[0].header.number}}u64 --args {{$.call-api[0].header.block_hash}} -// script{ -// use StarcoinFramework::Vector; -// fun main(_sender: signer, block_number: u64, block_hash: vector){ -// assert!(block_number == 6487000, 1000); -// assert!(vector::length(&block_hash) == 32, 1001); -// assert!(x"58d3b6aa35ba1f52c809382b876950b6038c4ce9fa078358c0fcf0b072e5ae3d" == block_hash, 1002); -// } -// } \ No newline at end of file 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 deleted file mode 100644 index 878d67d4d6..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.exp +++ /dev/null @@ -1,7 +0,0 @@ -processed 4 tasks - -task 3 'run'. lines 7-14: -{ - "gas_used": 8712, - "status": "Executed" -} diff --git a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move.ignored b/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move.ignored deleted file mode 100644 index b601991892..0000000000 --- a/vm/starcoin-transactional-test-harness/tests/cases/call_api_cmd_halley.move.ignored +++ /dev/null @@ -1,14 +0,0 @@ -//# init --rpc http://halley.seed.starcoin.org --block-number 1 - -//# faucet --addr creator --amount 100000000000 - -//# call-api chain.get_block_by_number [1] - -//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}" -script{ - use std::vector; - fun main(_sender: signer, block_number: u64, block_hash: vector){ - assert!(block_number == 1, 1000); - assert!(vector::length(&block_hash) == 32, 1001); - } -} \ No newline at end of file