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: tx req fee error #4430

Merged
merged 1 commit into from
Oct 26, 2023
Merged

fix: tx req fee error #4430

merged 1 commit into from
Oct 26, 2023

Conversation

fbwoolf
Copy link
Contributor

@fbwoolf fbwoolf commented Oct 25, 2023

Try out this version of Leather — download extension builds.

Now shows error if the fee is set higher than available STX... the fee form needed to wrap the error components so it was available to use. I'm not sure why transaction.fee was used originally, but our form handles the fee. And, the conversion here was wrong bc the amount is in microstacks.

Screen Shot 2023-10-25 at 3 36 46 PM Screen Shot 2023-10-25 at 3 37 33 PM

@fbwoolf fbwoolf force-pushed the fix/tx-request-fee-error branch from 759316e to fe04d65 Compare October 25, 2023 21:06
@@ -111,6 +103,15 @@ export function StacksTransactionSigner({
>
{() => (
<>
<PageTop />
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can extract these components into another file so we can include that in stacks-transaction-signer.tsx and transaction-request.tsx instead of repeating these lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we need to refactor our transaction flows for sure, agree lots of duplicate code. I created a code health issue for it here: #3594

@fbwoolf fbwoolf added this pull request to the merge queue Oct 26, 2023
Merged via the queue into dev with commit 190868a Oct 26, 2023
26 checks passed
@fbwoolf fbwoolf deleted the fix/tx-request-fee-error branch October 26, 2023 13:52
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.

When STX fee exceeds wallet balance, confirm button does nothing when trying to confirm a contract call
3 participants