Skip to content

Commit

Permalink
fix: update code for dummy signature issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adnpark committed Mar 21, 2024
1 parent 9689fb5 commit b5b1fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validator/WeightedECDSAValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ contract WeightedECDSAValidator is EIP712, IKernelValidator {
passed = true;
}
}
proposal.status = ProposalStatus.Executed;
if (passed && guardian[signer][msg.sender].weight != 0) {
proposal.status = ProposalStatus.Executed;
return packValidationData(ValidAfter.wrap(0), ValidUntil.wrap(0));
}
return SIG_VALIDATION_FAILED;
} else if (proposal.status == ProposalStatus.Approved || passed) {
if (userOp.paymasterAndData.length == 0 || address(bytes20(userOp.paymasterAndData[0:20])) == address(0)) {
address signer = ECDSA.recover(ECDSA.toEthSignedMessageHash(userOpHash), userOp.signature);
Expand Down

0 comments on commit b5b1fe1

Please sign in to comment.