1
0
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:
Bogdan Fazakas 2022-02-21 15:31:26 +02:00 committed by GitHub
parent 36fa91f1dc
commit ba962c0805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}