Updating RootChain contract

This commit is contained in:
Richard Ramos 2018-07-31 13:41:21 -04:00
parent 98f2f077a2
commit ace956e796
1 changed files with 7 additions and 2 deletions

View File

@ -614,12 +614,17 @@ contract RootChain is ERC721Receiver {
/******************** ERC721 ********************/
function onERC721Received(address _from, uint256 _uid, bytes)
function onERC721Received(
address _operator,
address _from,
uint256 _tokenId,
bytes _data
)
public
isTokenApproved(msg.sender)
returns(bytes4)
{
deposit(_from, uint64(_uid), uint32(1));
deposit(_from, uint64(_tokenId), uint32(1));
return ERC721_RECEIVED;
}