Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Aug 23, 2024
1 parent cf5abbc commit 3213661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/cli/validate/validate-upgrade-safety.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function findSpecifiedContracts(
}

export function withCliDefaults(opts: ValidateUpgradeSafetyOptions): Required<ValidateUpgradeSafetyOptions> {
if (opts.unsafeSkipStorageCheck && opts.requireReference) {
if (opts.requireReference && opts.unsafeSkipStorageCheck) {
throw new Error(`The requireReference and unsafeSkipStorageCheck options cannot be used at the same time.`);
}
return {
Expand Down

0 comments on commit 3213661

Please sign in to comment.