pendulum-chain / wasm-deploy

A tool to deploy an ensemble of wasm smart contracts to Pendulum
GNU General Public License v3.0
2 stars 1 forks source link

26 use runtime managed erc20 tokens in tests #27

Closed gianfra-t closed 12 months ago

gianfra-t commented 1 year ago

Issue: #26.

Replaced the dependency on MockERC20 for TestableERC20 contract that interacts with the standalone chain during tests.

The tests were modified accordingly to work in this manner. Specifically cleaning token balances before execution of the tests and modifying time delay for swapExecution. Also added a test specific to the TestableERC20Wrapper.

The corresponding modifications for foucococo-standalone and pendulum-wrappers for this to work were made here and here respectively.

ebma commented 12 months ago

@gianfra-t you can merge this now if you don't want to add anything. Usually, the author of the PR merges it once approved, because sometimes it might be that the author still wants to add something after it got approved by someone else which would be missed if the reviewer merges it.