Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gas limit fix for RSK chain #290

Merged
merged 11 commits into from
Jun 12, 2019
2 changes: 1 addition & 1 deletion app/scripts/controllers/transactions/tx-gas-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TxGasUtil {
let code
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
txMeta.simpleSend = true // Prevents buffer addition
return SIMPLE_GAS_COST
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-cases/RSK-network-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const { screens, elements, NETWORKS } = require('../elements')
it('confirms transaction', async function () {
const inputGasLimit = await f.waitUntilShowUp(screens.confirmTransaction.fields.gasLimit)
await f.clearField(inputGasLimit)
await inputGasLimit.sendKeys('31500')
await inputGasLimit.sendKeys('21000')
const button = await f.waitUntilShowUp(screens.confirmTransaction.button.submit)
assert.equal(await button.getAttribute('value'), 'Submit', 'button has incorrect name')
await f.click(button)
Expand Down