|
|
@ -77,10 +77,6 @@ module.exports = class txProvideUtil { |
|
|
|
return bnToHex(upperGasLimitBn) |
|
|
|
return bnToHex(upperGasLimitBn) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async publishTransaction (rawTx) { |
|
|
|
|
|
|
|
return await this.query.sendRawTransaction(rawTx) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async validateTxParams (txParams) { |
|
|
|
async validateTxParams (txParams) { |
|
|
|
if (('value' in txParams) && txParams.value.indexOf('-') === 0) { |
|
|
|
if (('value' in txParams) && txParams.value.indexOf('-') === 0) { |
|
|
|
throw new Error(`Invalid transaction value of ${txParams.value} not a positive number.`) |
|
|
|
throw new Error(`Invalid transaction value of ${txParams.value} not a positive number.`) |