Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/op-tooling/impls/DeployMIPS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ contract DeployMIPS is Script {
uint256 minProposalSize_ = vm.envOr("MIN_PROPOSAL_SIZE", uint256(0));
uint256 challengePeriod_ = vm.envOr("CHALLENGE_PERIOD", uint256(0));

if (oracle_ != address(0) && oracle_.code.length == 0) {
revert MissingEnvVars();
}

if (oracle_ == address(0) && !(minProposalSize_ > 0 && challengePeriod_ > 0)) {
revert MissingEnvVars();
}
Expand Down