Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Dec 13, 2024
1 parent f13c92c commit e61538f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module creator::test {

//# run --signers creator
script {
use StarcoinFramework::Signer;
use std::signer;
use creator::test;

fun main(s: signer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}" --args "{{$.call-api[1]}}"
script{
use StarcoinFramework::Vector;
use std::vector;
fun main(_sender: signer, block_number: u64, block_hash: vector<u8>, state_proof: vector<u8>){
assert!(block_number == 1, 1000);
assert!(vector::length(&block_hash) == 32, 1001);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}"
script{
use StarcoinFramework::Vector;
use std::vector;
fun main(_sender: signer, block_number: u64, block_hash: vector<u8>){
assert!(block_number == 1, 1000);
assert!(vector::length(&block_hash) == 32, 1001);
Expand Down

0 comments on commit e61538f

Please sign in to comment.