Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifechukwudaniel committed Feb 9, 2025
1 parent bf7a556 commit 452a405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions contracts/src/token/erc20/extensions/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl IErc20Wrapper for Erc20Wrapper {
value,
)?;
erc20._mint(account, value)?;

Ok(true)
}

Expand Down
11 changes: 5 additions & 6 deletions examples/erc20-wrapper/tests/erc20wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ mod deposit_to {
let alice_address = alice.address();
let asset = ERC20Mock::new(asset_addr, &alice.wallet);
let contract = Erc20Wrapper::new(contract_addr, &alice.wallet);
_ = watch!(asset.mint(alice.address(), uint!(1000_U256)))?;
_ = asset.regular_approve(
alice_address,
contract_addr,
uint!(1000_U256),
);

// _ = watch!(asset.mint(alice.address(), uint!(1000_U256)))?;

_ = asset.approve(alice_address, uint!(1000_U256));

_ = watch!(contract.depositFor(alice_address, uint!(1000_U256)))?;
Ok(())
}
Expand Down

0 comments on commit 452a405

Please sign in to comment.