Skip to content

Commit

Permalink
feat: add all tests from hello_world tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 15, 2023
1 parent 19698d0 commit a04f17c
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 106 deletions.
6 changes: 5 additions & 1 deletion cmd/crates/soroban-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ impl TestEnv {
/// A convenience method for using the invoke command.
pub fn invoke<I: AsRef<str>>(&self, command_str: &[I]) -> Result<String, invoke::Error> {
let cmd = contract::invoke::Cmd::parse_arg_vec(
&command_str.iter().map(AsRef::as_ref).collect::<Vec<_>>(),
&command_str
.iter()
.map(AsRef::as_ref)
.filter(|s| !s.is_empty())
.collect::<Vec<_>>(),
)
.unwrap();
self.invoke_cmd(cmd)
Expand Down
Loading

0 comments on commit a04f17c

Please sign in to comment.