mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Remove try...catch from NFT
This commit is contained in:
parent
11bb4c1fb3
commit
59eb56b9ee
@ -78,13 +78,7 @@ export class Nft extends SmartContract {
|
|||||||
gasPrice: await this.getFairGasPrice()
|
gasPrice: await this.getFairGasPrice()
|
||||||
})
|
})
|
||||||
|
|
||||||
let tokenAddress = null
|
return trxReceipt.events.TokenCreated.returnValues[0]
|
||||||
try {
|
|
||||||
tokenAddress = trxReceipt.events.TokenCreated.returnValues[0]
|
|
||||||
} catch (e) {
|
|
||||||
LoggerInstance.error(`ERROR: Failed to create datatoken : ${e.message}`)
|
|
||||||
}
|
|
||||||
return tokenAddress
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user