Platform: Code4rena
Start Date: 12/07/2023
Pot Size: $80,000 USDC
Total HM: 11
Participants: 47
Period: 9 days
Judge: berndartmueller
Total Solo HM: 1
Id: 260
League: ETH
Rank: 29/47
Findings: 1
Award: $94.77
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Jeiwan
Also found by: 0xkazim, Emmanuel, KrisApostolov, T1MOH, Toshii, UniversalCrypto, Viktor_Cortess, immeas, libratus, nobody2018, qpzm
94.7708 USDC - $94.77
_executeProposal
cannot send ether if call.value
is not zero.
(bool success, bytes memory result) = call.target.call{ value: call.value }(call.callData);
I add one it block after test/interchain-governance-executor/InterchainProposalExecutor.js#26
.
describe('_execute', function () { it('cannot receive ether to send in _executeProposal', async function () { await signer.sendTransaction({ to: executor.address, value: ethers.utils.parseEther('1') }); });
$ yarn hardhat test --grep "cannot receive ether to send in _executeProposal" 1) Interchain Proposal Executor _execute cannot receive ether to send in _executeProposal: Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="Transaction reverted: function selector was not recognized and there's no fallback nor receive function",
Manual review.
Add receive()
in InterchainProposalExecutor.sol.
+ receive() external payable {}
ETH-Transfer
#0 - c4-pre-sort
2023-07-29T00:04:46Z
0xSorryNotSorry marked the issue as duplicate of #319
#1 - c4-judge
2023-09-08T11:00:24Z
berndartmueller marked the issue as satisfactory