Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaJane authored and atodorov committed Jun 22, 2023
1 parent 85dd90b commit 34cd364
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/cc-cli/src/utils/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export async function signSendAndWatch(
api: ApiPromise,
signer: KeyringPair
): Promise<TxResult> {

return new Promise((resolve, reject) => {
console.log("Sending transaction...");
let maybeUnsub: (() => void) | undefined;
Expand Down Expand Up @@ -48,11 +47,13 @@ export async function signSendAndWatch(
unsubAndResolve(result);
}
}
}).then((unsub) => {
maybeUnsub = unsub;
}).catch((err) => {
reject(err)
});
})
.then((unsub) => {
maybeUnsub = unsub;
})
.catch((err) => {
reject(err);
});
});
}

Expand Down

0 comments on commit 34cd364

Please sign in to comment.