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: hide Edit for safeTxGas when 0 in 1.3.0+ #2163

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Jun 23, 2023

Another take on #2140

The safeTxGas Edit button will be shown only of safeTxGas is > 0 or it's a Safe below v1.3.0.

Also added baseGas and refundReceiver.

Screenshot 2023-06-23 at 16 26 40

1.1.1 Safe:
Screenshot 2023-06-23 at 16 29 22

@github-actions
Copy link

github-actions bot commented Jun 23, 2023

Branch preview

✅ Deploy successful!

https://safetxgas--walletweb.review-wallet-web.5afe.dev

)}

{editing && <Form onSubmit={() => setEditing(false)} />}
Copy link
Member Author

Choose a reason for hiding this comment

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

Moving the form into a separate component fixes the bug that the default value wasn't updated when safeTxGas is recalculated.

@github-actions
Copy link

github-actions bot commented Jun 23, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

</Paper>
return (
<Box display="flex" alignItems="center" gap={1} position="relative">
{safeTxGas}
Copy link
Member

Choose a reason for hiding this comment

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

I also just realized that we need to adjust the prio of finalSafeTxGas in the provider in case a safe app sends it it should take prio over the recommended value. Right now all Safe App txs send safeTxGas regardless of safe version but we display 0.

@katspaugh katspaugh merged commit 9ffe15b into epic-tx-flow Jun 26, 2023
6 of 7 checks passed
@katspaugh katspaugh deleted the safetxgas branch June 26, 2023 09:42
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants