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

Fix non existing transaction error

This commit is contained in:
Ana Loznianu 2023-12-05 15:38:05 +02:00
parent 9918d5ff36
commit bcfd125b72

View File

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