From 061af092614c4956ee1a6d81321c3c1cdd37763c Mon Sep 17 00:00:00 2001 From: koeltp Date: Sun, 24 Nov 2024 22:57:55 +0800 Subject: [PATCH] Update MultisigWallet.sol (#842) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果success为false,那require放在这里会导致回滚,后面的else逻辑不会执行。还请指教。 --- 50_MultisigWallet/MultisigWallet.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/50_MultisigWallet/MultisigWallet.sol b/50_MultisigWallet/MultisigWallet.sol index 71c28d209..068466272 100644 --- a/50_MultisigWallet/MultisigWallet.sol +++ b/50_MultisigWallet/MultisigWallet.sol @@ -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); }