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:
parent
bf1eab7df8
commit
11bb4c1fb3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user