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

feat: show broken tx #1063

Merged
merged 12 commits into from
Jan 30, 2024
Merged

feat: show broken tx #1063

merged 12 commits into from
Jan 30, 2024

Conversation

matt-user
Copy link
Contributor

closes FE-78

Copy link

linear bot commented Jan 23, 2024

Copy link
Contributor

github-actions bot commented Jan 23, 2024

Coverage report for ./packages/app

St.
Category Percentage Covered / Total
🟡 Statements 64.88% 3250/5009
🔴 Branches 41.37% 585/1414
🔴 Functions 48.33% 678/1403
🟡 Lines 65.46% 3134/4788

Test suite run success

236 tests passing in 72 suites.

Report generated by 🧪jest coverage report action from 661fd2b

@matt-user
Copy link
Contributor Author

one way to test this pr

  1. modify a call in e2e-contracts custom interactions such that it will fail (gas limit)
  2. deploy the e2e contracts
  3. dev:e2e-contract-tests
  4. call the contract

@matt-user matt-user marked this pull request as ready for review January 25, 2024 17:24
@matt-user matt-user enabled auto-merge (squash) January 25, 2024 17:24
Copy link
Member

@luizstacio luizstacio left a comment

Choose a reason for hiding this comment

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

On transaction request

  • When setting the gasLimit to a small value I got this error, it should show the the message as error but shows Carefully check if all the details in your transaction are correct. Operations:. We should shot a text that only says The transaction fail with error: {error message } with unknown error we just say The transaction fail to run.
  • Also we could remove the icon to center better the error message.
Screenshot 2024-01-25 at 23 04 56 - When the transaction was called from the SDK it should throw the error back to the DApp and close the popup instead of stay on the screen with the error.

On transaction history

  • When opening a transaction on the history with panic or revert we can use the return error message from the SDK to show the message if it exists also.
Screenshot 2024-01-25 at 23 23 25

@matt-user matt-user merged commit bdfb2fa into master Jan 30, 2024
14 checks passed
@matt-user matt-user deleted the matt-user/feat-show-broken-tx branch January 30, 2024 01:34
luizstacio pushed a commit that referenced this pull request Jan 30, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to master, this PR
will be updated.


# Releases
## @fuel-wallet/connections@0.15.1

### Patch Changes

- Updated dependencies
\[[`b81704c`](b81704c)]:
    -   @fuel-wallet/types@0.15.1
    -   @fuel-wallet/sdk@0.15.1

## @fuel-wallet/react@0.15.1

### Patch Changes

- [#1062](#1062)
[`b81704c`](b81704c)
Thanks [@arboleya](https://github.com/arboleya)! - chore: update
fuels-ts to rc/salamander

## @fuel-wallet/sdk@0.15.1

### Patch Changes

- [#1062](#1062)
[`b81704c`](b81704c)
Thanks [@arboleya](https://github.com/arboleya)! - chore: update
fuels-ts to rc/salamander

- Updated dependencies
\[[`b81704c`](b81704c)]:
    -   @fuel-wallet/types@0.15.1

## @fuel-wallet/playwright-utils@0.15.1

### Patch Changes

- [#1062](#1062)
[`b81704c`](b81704c)
Thanks [@arboleya](https://github.com/arboleya)! - chore: update
fuels-ts to rc/salamander

## @fuel-wallet/types@0.15.1

### Patch Changes

- [#1062](#1062)
[`b81704c`](b81704c)
Thanks [@arboleya](https://github.com/arboleya)! - chore: update
fuels-ts to rc/salamander

## fuels-wallet@0.15.1

### Patch Changes

- [#1062](#1062)
[`b81704c`](b81704c)
Thanks [@arboleya](https://github.com/arboleya)! - chore: update
fuels-ts to rc/salamander

- [#1063](#1063)
[`bdfb2fa`](bdfb2fa)
Thanks [@matt-user](https://github.com/matt-user)! - Add an error
message for a failed simulated tx

- Updated dependencies
\[[`b81704c`](b81704c)]:
    -   @fuel-wallet/types@0.15.1
    -   @fuel-wallet/sdk@0.15.1
    -   @fuel-wallet/connections@0.15.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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