From ace956e79699101ad7b51e1dcc4b5c6049840f7d Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 31 Jul 2018 13:41:21 -0400 Subject: [PATCH] Updating RootChain contract --- contracts/plasma/RootChain.sol | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; }