Skip to content

Commit

Permalink
fix: corrected exit criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeanjan committed Apr 26, 2021
1 parent 8aed200 commit 7f00519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/root/TokenPredicates/CustomERC1155Predicate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contract CustomERC1155Predicate is
if (bytes32(logTopicRLPList[0].toUint()) == CHAIN_EXIT_EVENT_SIG) {

address withdrawer = address(logTopicRLPList[1].toUint());
require(withdrawer == address(0), "CustomERC1155Predicate: INVALID_RECEIVER");
require(withdrawer != address(0), "CustomERC1155Predicate: INVALID_RECEIVER");

(uint256 id, uint256 amount, bytes memory data) = abi.decode(
logData,
Expand Down
2 changes: 1 addition & 1 deletion flat/CustomERC1155Predicate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ contract CustomERC1155Predicate is
if (bytes32(logTopicRLPList[0].toUint()) == CHAIN_EXIT_EVENT_SIG) {

address withdrawer = address(logTopicRLPList[1].toUint());
require(withdrawer == address(0), "CustomERC1155Predicate: INVALID_RECEIVER");
require(withdrawer != address(0), "CustomERC1155Predicate: INVALID_RECEIVER");

(uint256 id, uint256 amount, bytes memory data) = abi.decode(
logData,
Expand Down

0 comments on commit 7f00519

Please sign in to comment.