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: Allow editing gas fees for spending limit transactions #1373

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

usame-algan
Copy link
Member

What it solves

Resolves #1345

How this PR fixes it

  • Doesn't disable the gas fee accordion even if the nonce is undefined

How to test it

  1. Open the Safe
  2. Create a new spending limit transaction
  3. Observe that the "Estimated Fee" Accordion is clickable and opens
  4. Observe being able to edit gas fee params

Screenshots

Screenshot 2022-12-14 at 14 58 10

@usame-algan usame-algan requested a review from iamacook December 14, 2022 13:58
@github-actions
Copy link

github-actions bot commented Dec 14, 2022

Branch preview

✅ Deploy successful!

https://fixspendinglimitgas--webcore.review-web-core.5afe.dev

Safe transaction
</Typography>
</Grid>
{(params.nonce !== undefined || !!params.safeTxGas) && (
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this condition so that the title is only shown if there is either a nonce or safeTxGas field

@github-actions
Copy link

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

@iamacook
Copy link
Member

Can confirm that it is now possible to edit the transaction details of spending limit transactions.

spending limit

@usame-algan usame-algan merged commit d5abe5a into dev Dec 19, 2022
@usame-algan usame-algan deleted the fix-spending-limit-gas branch December 19, 2022 10:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2022
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.

[Spending Limit] It's not possible to edit gas parameters
2 participants