Skip to content

Commit

Permalink
feat: add waitForAllTransactionsToConfirm method
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 9, 2022
1 parent 7deea68 commit 72fa842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datalayer/persistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getConfig } from '../utils/config-loader';
import { decodeHex } from '../utils/datalayer-utils';
import fullNode from './fullNode';
import { publicIpv4 } from '../utils/ip-tools';
import { waitForAllTransactionsToConfirm } from './wallet';
import wallet from './wallet';

// Generally I dont think this should be put here,
// but because of time, will add it and thinkof a way to refactor
Expand Down Expand Up @@ -349,7 +349,7 @@ const getRootDiff = async (storeId, root1, root2) => {
};

const addMirror = async (storeId, url, forceAddMirror = false) => {
await waitForAllTransactionsToConfirm();
await wallet.waitForAllTransactionsToConfirm();
const homeOrg = await Organization.getHomeOrg();

if (!homeOrg && !forceAddMirror) {
Expand Down

0 comments on commit 72fa842

Please sign in to comment.