Skip to content

Commit

Permalink
Update MultisigWallet.sol (#842)
Browse files Browse the repository at this point in the history
如果success为false,那require放在这里会导致回滚,后面的else逻辑不会执行。还请指教。
  • Loading branch information
koeltp authored Nov 24, 2024
1 parent f59f4c9 commit 061af09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 50_MultisigWallet/MultisigWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contract MultisigWallet {
checkSignatures(txHash, signatures); // 检查签名
// 利用call执行交易,并获取交易结果
(success, ) = to.call{value: value}(data);
require(success , "WTF5004");
//require(success , "WTF5004");
if (success) emit ExecutionSuccess(txHash);
else emit ExecutionFailure(txHash);
}
Expand Down

0 comments on commit 061af09

Please sign in to comment.