diff --git a/src/wallet/passPort.js b/src/wallet/passPort.js index 1d0d62b..b2f5f3f 100644 --- a/src/wallet/passPort.js +++ b/src/wallet/passPort.js @@ -123,7 +123,9 @@ class LPassportWallet { if (action.type === orderbook.ActionType.TRANSACTION) { const builtTx = await action.buildTransaction() console.log(`Submitting ${action.purpose} transaction`) - await this.signer.sendTransaction(builtTx); + const res = await this.signer.sendTransaction(builtTx); + // console.log(res) + await this.web3Provider.waitForTransaction(res.hash) } // For an order to be created (and subsequently filled), Immutable needs a valid signature for the order data. @@ -197,7 +199,8 @@ class LPassportWallet { if (action.type === orderbook.ActionType.TRANSACTION) { const builtTx = await action.buildTransaction(); console.log(`Submitting ${action.purpose} transaction`); - await this.signer.sendTransaction(builtTx); + const res = await this.signer.sendTransaction(builtTx); + await this.web3Provider.waitForTransaction(res.hash) } } } @@ -231,7 +234,8 @@ class LPassportWallet { if (action.type === orderbook.ActionType.TRANSACTION) { const builtTx = await action.buildTransaction(); console.log(`Submitting ${action.purpose} transaction`); - await this.signer.sendTransaction(builtTx); + const res = await this.signer.sendTransaction(builtTx); + await this.web3Provider.waitForTransaction(res.hash) } } console.log(