Skip to content

Commit

Permalink
chore: revert tests for ERC-20 Example
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Aug 22, 2024
1 parent a5fa47d commit 74ce73b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/erc20/tests/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ async fn constructs(alice: Account) -> Result<()> {
.address()?;
let contract = Erc20::new(contract_addr, &alice.wallet);

// let Erc20::nameReturn { name } = contract.name().call().await?;
// let Erc20::symbolReturn { symbol } = contract.symbol().call().await?;
let Erc20::nameReturn { name } = contract.name().call().await?;
let Erc20::symbolReturn { symbol } = contract.symbol().call().await?;
let Erc20::capReturn { cap } = contract.cap().call().await?;
let Erc20::decimalsReturn { decimals } = contract.decimals().call().await?;
let Erc20::totalSupplyReturn { totalSupply: total_supply } =
contract.totalSupply().call().await?;

// assert_eq!(name, TOKEN_NAME.to_owned());
// assert_eq!(symbol, TOKEN_SYMBOL.to_owned());
assert_eq!(name, TOKEN_NAME.to_owned());
assert_eq!(symbol, TOKEN_SYMBOL.to_owned());
assert_eq!(cap, CAP);
assert_eq!(decimals, 10);
assert_eq!(total_supply, U256::ZERO);
Expand Down

0 comments on commit 74ce73b

Please sign in to comment.