Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
amityadav0 committed Sep 11, 2023
1 parent c09a5b6 commit 3f6713b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ jobs:
IS_GITHUB_ACTION: true
run: cargo +stable build --workspace --target wasm32-unknown-unknown --release
- name: Wasm copy
run: |
cp target/wasm32-unknown-unknown/release/astra_factory.wasm res
cp target/wasm32-unknown-unknown/release/astra_staking.wasm res
cp target/wasm32-unknown-unknown/release/test_token.wasm res
run: cp target/wasm32-unknown-unknown/release/*.wasm res

- name: Run Cargo tests
env:
Expand Down
8 changes: 4 additions & 4 deletions astra/tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pub async fn setup_dao() -> anyhow::Result<(Account, Contract, Worker<Sandbox>)>
"config": config, "policy": VersionedPolicy::Default(vec![root_near_account])
}))
.max_gas()
.transact();
assert!(res1.await?.is_success());
.transact().await?;
assert!(res1.is_success(), "{:?}", res1);
Ok((root, dao_contract, worker))
}

Expand All @@ -36,8 +36,8 @@ pub async fn setup_test_token(worker: Worker<Sandbox>) -> anyhow::Result<(Contra
let res1 = test_token
.call("new")
.max_gas()
.transact();
assert!(res1.await?.is_success());
.transact().await?;
assert!(res1.is_success(), "{:?}", res1);

Ok((test_token, worker))
}
Expand Down

0 comments on commit 3f6713b

Please sign in to comment.