Skip to content

Commit 858f4e0

Browse files
committed
This commit fixes #175: waitForCommit fix
1 parent fda324b commit 858f4e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/secret_network_client.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,11 @@ export class SecretNetworkClient {
16081608
);
16091609
}
16101610

1611+
if (!waitForCommit) {
1612+
//@ts-ignore
1613+
return { transactionHash: txhash };
1614+
}
1615+
16111616
// sleep first because there's no point in checking right after broadcasting
16121617
await sleep(checkIntervalMs / 2);
16131618

0 commit comments

Comments
 (0)