RSK gas limit fix
This commit is contained in:
parent
f08b9b4df2
commit
1b5358e0ce
|
@ -62,7 +62,7 @@ class TxGasUtil {
|
||||||
let code
|
let code
|
||||||
if (recipient) code = await this.query.getCode(recipient)
|
if (recipient) code = await this.query.getCode(recipient)
|
||||||
|
|
||||||
if (hasRecipient && (!code || code === '0x')) {
|
if (hasRecipient && (!code || code === '0x' || code === '0x0')) {
|
||||||
txParams.gas = SIMPLE_GAS_COST
|
txParams.gas = SIMPLE_GAS_COST
|
||||||
txMeta.simpleSend = true // Prevents buffer addition
|
txMeta.simpleSend = true // Prevents buffer addition
|
||||||
return SIMPLE_GAS_COST
|
return SIMPLE_GAS_COST
|
||||||
|
|
Loading…
Reference in New Issue