Skip to content

Commit

Permalink
Merge pull request #177 from CirclesUBI/recover-registration
Browse files Browse the repository at this point in the history
Recover from invalid state when restoring undeployed account
  • Loading branch information
adzialocha authored Apr 14, 2021
2 parents 2d039c2 + e77d337 commit 2a53471
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 2a53471

Please sign in to comment.