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

Fix ETH gas limit text state #1405

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Fix ETH gas limit text state #1405

merged 2 commits into from
Nov 27, 2024

Conversation

aminsato
Copy link
Contributor

@aminsato aminsato commented Nov 26, 2024

#1393

Before

Before.mp4

After

After.mp4

@aminsato aminsato requested a review from yvebe November 26, 2024 10:17
var gasLimit = if (gasLimitState.text.isEmpty()) {
val specific = spec.blockChainSpecific as BlockChainSpecific.Ethereum
specific.gasLimit.also {
gasLimitState.setTextAndPlaceCursorAtEnd(specific.gasLimit.toString())
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should return value not set it, also, what is the reason why it didn't work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because when a user saves the gas limit, closes it, and reopens it, it always displays 23000. However, in the backend, it correctly saves the value the user modified

@aminsato aminsato requested a review from yvebe November 26, 2024 13:07
@yvebe yvebe merged commit 90f4831 into main Nov 27, 2024
1 check passed
@yvebe yvebe deleted the fix/gaslimit-eth-state-text branch November 27, 2024 07:00
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.

2 participants