Skip to content

Commit

Permalink
Update ERC20 E2E tests for LangError changes (#1553)
Browse files Browse the repository at this point in the history
The original PR for the ERC20 E2E tests had been sitting around a bit
long and didn't account for the extra `Result`. I should've merged
`master` into the PR before merging, haha.
  • Loading branch information
HCastano authored Dec 16, 2022
1 parent dda9d49 commit 34f9e8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/erc20/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,14 @@ mod erc20 {
// then
assert_eq!(
total_supply,
total_supply_res.value.unwrap(),
total_supply_res.return_value().unwrap(),
"total_supply"
);
assert_eq!(transfer_to_bob, balance_of_res.value.unwrap(), "balance_of");
assert_eq!(
transfer_to_bob,
balance_of_res.return_value().unwrap(),
"balance_of"
);

Ok(())
}
Expand Down Expand Up @@ -664,7 +668,7 @@ mod erc20 {

assert_eq!(
total_supply - approved_value,
balance_of_res.value.unwrap(),
balance_of_res.return_value().unwrap(),
"balance_of"
);

Expand Down

0 comments on commit 34f9e8c

Please sign in to comment.