1
0
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:
Miquel A. Cabot 2022-06-21 12:00:20 +02:00
parent 11bb4c1fb3
commit 59eb56b9ee

View File

@ -78,13 +78,7 @@ export class Nft extends SmartContract {
gasPrice: await this.getFairGasPrice()
})
let tokenAddress = null
try {
tokenAddress = trxReceipt.events.TokenCreated.returnValues[0]
} catch (e) {
LoggerInstance.error(`ERROR: Failed to create datatoken : ${e.message}`)
}
return tokenAddress
return trxReceipt.events.TokenCreated.returnValues[0]
}
/**