From 7f005194032d4460a05afb20b8250eae17c84749 Mon Sep 17 00:00:00 2001 From: Anjan Roy Date: Mon, 26 Apr 2021 14:39:20 +0530 Subject: [PATCH] fix: corrected exit criteria --- contracts/root/TokenPredicates/CustomERC1155Predicate.sol | 2 +- flat/CustomERC1155Predicate.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/root/TokenPredicates/CustomERC1155Predicate.sol b/contracts/root/TokenPredicates/CustomERC1155Predicate.sol index 0b58c0df..4a24940d 100644 --- a/contracts/root/TokenPredicates/CustomERC1155Predicate.sol +++ b/contracts/root/TokenPredicates/CustomERC1155Predicate.sol @@ -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, diff --git a/flat/CustomERC1155Predicate.sol b/flat/CustomERC1155Predicate.sol index 5e623eb8..28fc3c1f 100644 --- a/flat/CustomERC1155Predicate.sol +++ b/flat/CustomERC1155Predicate.sol @@ -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,