Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

Refund on fail while depositing to the EVM. #65

Open mfornet opened 3 years ago

mfornet commented 3 years ago

Refund tokens, and remove proof if the EVM didn't accept the tokens. This may happen if the target ERC20 tokens is not deployed yet. After #53

mfornet commented 3 years ago

This can also happen if target contract account (in most cases aurora) is not registered (storage-wise)

See error here: https://explorer.testnet.near.org/transactions/CbNZJUWDB6uAmamwbvEEGXm9eJWQ4EmoHWFrZ4uVBEy3