mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix estGas for setMetadata call (#1303)
This commit is contained in:
parent
36fa91f1dc
commit
ba962c0805
@ -1015,7 +1015,7 @@ export class Nft {
|
||||
new this.web3.eth.Contract(this.nftAbi, nftAddress),
|
||||
this.config
|
||||
)
|
||||
|
||||
if (!metadataProofs) metadataProofs = []
|
||||
const gasLimitDefault = this.GASLIMIT_DEFAULT
|
||||
let estGas
|
||||
try {
|
||||
@ -1033,6 +1033,7 @@ export class Nft {
|
||||
err ? gasLimitDefault : estGas
|
||||
)
|
||||
} catch (e) {
|
||||
LoggerInstance.error('estGasSetMetadata error: ', e.message)
|
||||
estGas = gasLimitDefault
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user