Skip to content

Commit

Permalink
Recover from invalid state when restoring undeployed account
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Apr 14, 2021
1 parent 2d039c2 commit e77d337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/safe/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function recreateUndeployedSafe() {
// but not deployed yet).
const status = await core.safe.getSafeStatus(pendingAddress);
if (!status.isCreated) {
throw new Error('Safe is not known to system');
// This Safe is not know to the relayer (something must have went wrong
// there), register it!
await core.safe.prepareDeploy(pendingNonce);
}

dispatch({
Expand Down

0 comments on commit e77d337

Please sign in to comment.