-
Notifications
You must be signed in to change notification settings - Fork 404
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
Conversation
Branch preview✅ Deploy successful! |
)} | ||
|
||
{editing && <Form onSubmit={() => setEditing(false)} />} |
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.
Moving the form into a separate component fixes the bug that the default value wasn't updated when safeTxGas is recalculated.
ESLint Summary View Full Report
Report generated by eslint-plus-action |
</Paper> | ||
return ( | ||
<Box display="flex" alignItems="center" gap={1} position="relative"> | ||
{safeTxGas} |
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.
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.
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.
1.1.1 Safe: