From 913f4b1c3cec25aafa3493ce2b45d4e60522ccfb Mon Sep 17 00:00:00 2001 From: DhairyaSethi <55102840+DhairyaSethi@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:36:28 +0530 Subject: [PATCH] fix: zero address check for malformed tx sig --- contracts/root/predicates/IPredicate.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/root/predicates/IPredicate.sol b/contracts/root/predicates/IPredicate.sol index 9b50f8f66..a3c107607 100644 --- a/contracts/root/predicates/IPredicate.sol +++ b/contracts/root/predicates/IPredicate.sol @@ -96,6 +96,7 @@ contract PredicateUtils is ExitsDataStructure, ChainIdMixin { bytes32(txList[7].toUint()), bytes32(txList[8].toUint()) ); + require(signer != address(0), "Invalid signer"); } function decodeExit(bytes memory data)