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

Remove try...catch from NFTFactory

This commit is contained in:
Miquel A. Cabot 2022-06-21 11:59:51 +02:00
parent bf1eab7df8
commit 11bb4c1fb3

View File

@ -87,13 +87,7 @@ export class NftFactory extends SmartContractWithAddress {
gasPrice: await this.getFairGasPrice()
})
let tokenAddress = null
try {
tokenAddress = trxReceipt.events.NFTCreated.returnValues[0]
} catch (e) {
LoggerInstance.error(`ERROR: Failed to create datatoken : ${e.message}`)
}
return tokenAddress
return trxReceipt.events.NFTCreated.returnValues[0]
}
/** Get Current NFT Count (NFT created)