v1.5.0
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.