Skip to content

Commit 2ef4b15

Browse files
committed
Fix stupid behavior that we copied for GovernorBravo
1 parent aefcb3e commit 2ef4b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/governance/extensions/GovernorTimelockCompound.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ abstract contract GovernorTimelockCompound is IGovernorTimelock, Governor {
178178
uint256 eta = proposalEta(proposalId);
179179
require(eta > 0, "GovernorTimelockCompound: proposal not yet queued");
180180
for (uint256 i = 0; i < targets.length; ++i) {
181-
_timelock.executeTransaction{value: values[i]}(targets[i], values[i], "", calldatas[i], eta);
181+
_timelock.executeTransaction{value: i == 0 ? msg.value : 0}(targets[i], values[i], "", calldatas[i], eta);
182182
}
183183
}
184184

0 commit comments

Comments
 (0)