Skip to content

Use hex gas limit values#1353

Merged
mholtzman merged 3 commits intodevelopfrom
use-hex-gas-limit-values
Jan 17, 2023
Merged

Use hex gas limit values#1353
mholtzman merged 3 commits intodevelopfrom
use-hex-gas-limit-values

Conversation

@mholtzman
Copy link
Copy Markdown
Collaborator

No description provided.


const receiveValueHandler = (value, name, setAsHex = true) => {
const receiveValueHandler = (value, name) => {
// FIXME: should not set state directly
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that can be done quickly before this is merged? 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, this is a linting error, would be nice to splat it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, I guess we could just change it to use setState but the problem is keeping the state in this component isn't quite right to begin with -- it disconnects the values from those on the actual request. one symptom of that could be seen in this reported issue where the gas limit was being changed to 21000 in the component and the actual value that was being set on the request, ~130000, wasn't being reflected

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to go down a long refactor rabbit hole and instead decided to keep this as is until after the release. I can spend a little more time on it though if you think it would be impactful

Copy link
Copy Markdown
Contributor

@goosewobbler goosewobbler Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we discussed changing this component completely anyway. Sounds like we should exempt it for the setState rule as far as the linting goes, and leave it for now.

@mholtzman mholtzman linked an issue Jan 17, 2023 that may be closed by this pull request
@mholtzman mholtzman merged commit fbc83e2 into develop Jan 17, 2023
@mholtzman mholtzman deleted the use-hex-gas-limit-values branch January 17, 2023 17:36
wakamex pushed a commit to wakamex/framed that referenced this pull request Mar 2, 2026
* send hex values to main process

* send hex

* clean up tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Gas Limits are broken in 5.0 Canary 12

3 participants