Skip to content

Commit

Permalink
fix(ct): check that the bundle has been initiated in the `executeActi…
Browse files Browse the repository at this point in the history
…ons` function
  • Loading branch information
sam-goldman committed Apr 22, 2023
1 parent 27bd6f1 commit 2b9f72c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-timers-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/contracts': patch
---

Check that the bundle has been initiated in the `executeActions` function
5 changes: 5 additions & 0 deletions packages/contracts/contracts/ChugSplashManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,11 @@ contract ChugSplashManager is OwnableUpgradeable, ReentrancyGuardUpgradeable, Se

ChugSplashBundleState storage bundle = _bundles[activeBundleId];

require(
bundle.status == ChugSplashBundleStatus.INITIATED,
"ChugSplashManager: bundle status must be initiated"
);

assertCallerIsOwnerOrSelectedExecutor(bundle.remoteExecution);

uint256 numActions = _actions.length;
Expand Down

0 comments on commit 2b9f72c

Please sign in to comment.