1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #1793 from oceanprotocol/bugfix/order_fix

Fix non existing transaction error
This commit is contained in:
paulo@oceanprotocol 2024-09-25 09:52:52 +01:00 committed by GitHub
commit 443d748b3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,7 +220,9 @@ export async function orderAsset(
price,
false
)
if (!tx) {
return
}
const txApprove = typeof tx !== 'number' ? await tx.wait() : tx
if (!txApprove) {
return