Skip to content

v1.5.0

Compare
Choose a tag to compare
@gskapka gskapka released this 30 Mar 08:57
· 181 commits to master since this release
f0a6cb2

Can now pegOut with user-data!

Adds new overloaded pegOut function to the smart-contract to allow the enclave to pass through user-data from the other chain. The new function first checks if the recipient is a contract capable of receiving ERC777 tokens and if so makes the transfer via .send, passing along said user-data. If the recipient is not registered as accepting ERC777 tokens via the ERC1820 registry contract, this function instead falls back to a basic ERC20 transfer, sans user-data.

Adds test coverage also.