Skip to content

Commit

Permalink
Change GovernorTimelockCompound to support ETH in Timelock
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored and frangio committed Sep 6, 2021
1 parent aefcb3e commit 41ffeb0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,7 +178,7 @@ abstract contract GovernorTimelockCompound is IGovernorTimelock, Governor {
uint256 eta = proposalEta(proposalId);
require(eta > 0, "GovernorTimelockCompound: proposal not yet queued");
for (uint256 i = 0; i < targets.length; ++i) {
_timelock.executeTransaction{value: values[i]}(targets[i], values[i], "", calldatas[i], eta);
_timelock.executeTransaction{value: i == 0 ? msg.value : 0}(targets[i], values[i], "", calldatas[i], eta);
}
}

Expand Down

0 comments on commit 41ffeb0

Please sign in to comment.