ERC721 inline return
This commit is contained in:
committed by
Amir Bandeali
parent
4caf1271e4
commit
dbaf1fcd43
@@ -180,8 +180,10 @@ contract MixinERC721Transfer is
|
||||
0, // write output to null
|
||||
0 // output size is 0 bytes
|
||||
)
|
||||
if success {
|
||||
return(0, 0)
|
||||
}
|
||||
|
||||
if iszero(success) {
|
||||
// Revert with `Error("TRANSFER_FAILED")`
|
||||
mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
|
||||
mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
|
||||
@@ -190,7 +192,6 @@ contract MixinERC721Transfer is
|
||||
revert(0, 100)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @dev Internal version of `transferFrom`.
|
||||
/// @param assetData Encoded byte array.
|
||||
|
||||
Reference in New Issue
Block a user