-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Version 6.7.2 gas limit fix #6786
Conversation
e755843
to
0d5858f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small comments
gasLimit: this.props.customGasLimit, | ||
} | ||
this.changeGasPrice = debounce(this.changeGasPrice, 500) | ||
this.changeGasLimit = debounce(this.changeGasLimit, 500) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the property syntax for the debounce? That is, wrap the property value in the debounce call directly. If we can remove theses lines we can move the state to a property as well and remove the constructor.
} = confirmTransaction | ||
|
||
|
||
const transaction = selectedAddressTxList.find(({ id }) => id === (Number(paramsTransactionId) || transactionId)) | ||
console.log('!!! * transaction', transaction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: console log
const { | ||
from: fromAddress, | ||
to: txParamsToAddress, | ||
gasPrice, | ||
gas: gasLimit, | ||
value: amount, | ||
data, | ||
} = txParams | ||
} = transaction && transaction.txParams || txParams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we express this instead with a ternary?
I'm testing out 8e967aa locally now |
} | ||
|
||
onChangeGasPrice = (e) => { | ||
this.setState({ gasPrice: e.target.value }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should e.target.value
be converted to a Number
here?
Edit: Likewise for onChangeGasLimit
above
989c873
to
2ef4078
Compare
2ef4078
to
1b7f62f
Compare
* Introduce delay for eth_estimateGas calls with in test * Add test that fails when gas estimates of contract method calls without gas are too high. * Get transaction gas data from unApprovedTxs instead of confirmTransaction * Fix selection of gas data in gas-modal-page-container.container * Lint changes related to Version-6.7.2-gasLimitFix * Fix e2e tests on Version-6.7.2-gasLimitFix * Fix unit and integration tests for changes from Version-6.7.2-gasLimitFix * more e2e fixes * Add assertions for transaction values on confirm screen * Fix display of transaction amount on confirm screen.
No description provided.