Skip to content

Commit

Permalink
fix revert reason forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio authored Jan 14, 2020
1 parent cf5c2b8 commit f279bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/token/ERC721/ERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ contract ERC721 is Context, ERC165, IERC721 {
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(returndata, add(0x20, returndata_size))
revert(add(32, returndata), returndata_size)
}
} else {
revert("ERC721: transfer to non ERC721Receiver implementer");
Expand Down

0 comments on commit f279bec

Please sign in to comment.