zeta-chain / toolkit

A library of ZetaChain helper utilities, contracts, and Hardhat tasks for smart-contract development
MIT License
43 stars 22 forks source link

feat(deposit): add ignore check flag #123

Closed fadeev closed 6 months ago

fadeev commented 7 months ago

To allow sending failing transactions, which is useful for demo purposes.

We're using it here:

https://www.zetachain.com/docs/developers/omnichain/transactions/#usdc-to-erc-20-custody-contract-with-a-message

To show an example of a transaction that's failing:

npx hardhat deposit --amount 1 --network sepolia_testnet --erc20 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 --message '[["string"], ["hello"]]' --recipient 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32 --ignore-checks

(just realized that I shouldn't have used it before it's shipped, but alright 😁, it's supposed to fail anyways)

fadeev commented 6 months ago

Let's merge this and ship Toolkit v8.