diff --git a/contracts/plasma/RootChain.sol b/contracts/plasma/RootChain.sol index fac12e6..bc455dd 100644 --- a/contracts/plasma/RootChain.sol +++ b/contracts/plasma/RootChain.sol @@ -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; }