增加那啥的gas费

This commit is contained in:
zhl 2023-04-26 17:26:17 +08:00
parent 18d1293862
commit 286d24c5b0
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ export class DistributorReactor {
return contract.methods.addNFTData(to, nftList).encodeABI()
}
let gas = await contract.methods.addNFTData(to, nftList).estimateGas({ from: this.account.address })
let res = await contract.methods.addNFTData(to, nftList).send({ gas: gas | 0 })
let res = await contract.methods.addNFTData(to, nftList).send({ gas: (gas * 1.5) | 0 })
return res
}
/**
@ -54,7 +54,7 @@ export class DistributorReactor {
return contract.methods.mintToUser(to, countStr).encodeABI()
}
let gas = await contract.methods.mintToUser(to, countStr).estimateGas({ from: this.account.address })
let res = await contract.methods.mintToUser(to, countStr).send({ gas: gas | 0 })
let res = await contract.methods.mintToUser(to, countStr).send({ gas: (gas * 1.5) | 0 })
return res
}
/**

View File

@ -99,7 +99,7 @@ export class ChainTaskClass extends BaseModule {
errorCount: record.errorCount,
hashList,
})
logger.log(result)
// logger.log(result)
} catch (err) {
logger.log(err)
}