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

APP-1500 #5763

Merged
merged 3 commits into from
May 23, 2024
Merged

APP-1500 #5763

merged 3 commits into from
May 23, 2024

Conversation

benisgold
Copy link
Member

Fixes APP-1500

What changed (plus any additional context for devs)

  • don't let users click "confirm" button on tx confirmation sheet if wallet balance or gas has not loaded, otherwise it will be assumed balance = 0 and will redirect to buy eth sheet

Screen recordings / screenshots

What to test

@benisgold benisgold requested a review from walmat May 23, 2024 17:42
Copy link

linear bot commented May 23, 2024

@@ -950,6 +950,7 @@ export const SignTransactionSheet = () => {
}
newShadows
onPress={submitFn}
disabled={!walletBalance?.isLoaded || !selectedGasFee.gasFee.estimatedFee}
Copy link
Contributor

Choose a reason for hiding this comment

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

are there any other cases where this should be disabled? If so, I think we should move this out to a functional check.

What should happen if the tx simulation hasn't resolved yet? Should we disable the button during that?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think people should be able to transact if they choose to without waiting for sim since it's not vital

@benisgold benisgold requested a review from walmat May 23, 2024 18:02
@@ -769,6 +769,8 @@ export const SignTransactionSheet = () => {

const expandedCardBottomInset = EXPANDED_CARD_BOTTOM_INSET + (isMessageRequest ? 0 : GAS_BUTTON_SPACE);

const canPressConfirm = isMessageRequest || (!!walletBalance?.isLoaded && !!currentNetwork && !!selectedGasFee?.gasFee?.estimatedFee);
Copy link
Member Author

Choose a reason for hiding this comment

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

if just message signing we dont need to wait for these things

@benisgold
Copy link
Member Author

/tf

@benisgold
Copy link
Member Author

/testflight

@benisgold benisgold merged commit 29ed2fc into develop May 23, 2024
6 checks passed
@benisgold benisgold deleted the @benisgold/tx-fix branch May 23, 2024 22:21
greg-schrammel pushed a commit that referenced this pull request May 24, 2024
* fix

* optional chaining just in case

* allow message signing tx w/o loaded balance/gas
walmat added a commit that referenced this pull request May 24, 2024
* types improvements

* useSwapsStore

* number & currency formatter

* gasss

* dont keep previous data

* use chainId from input token

* hm

* decimal separator

* add gas fee to review panel

* 😕

* save

* fix (#5758)

* consolidated verified assets fetches (#5759)

* fix (#5761)

* chore: i18n updates (#5762)

* APP-1500 (#5763)

* fix

* optional chaining just in case

* allow message signing tx w/o loaded balance/gas

* aaaaaa

* uhu

* add border back to review gas button

* remove color todo tags

* gasPrice

---------

Co-authored-by: Matthew Wall <matthew.wallt@gmail.com>
Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>
Co-authored-by: Daniel Sinclair <d@niel.nyc>
BrodyHughes added a commit that referenced this pull request May 28, 2024
…licious-dapp-warning-e2e

* 'develop' of github.com:rainbow-me/rainbow:
  Swaps: package upgrades, fix SwapBackground and AnimatedSwapSpinner (#5775)
  Swaps: fix safe math negative number support, add comparison functions (#5776)
  Reanimated v3.11.0 (#5683)
  Gas (#5757)
  add degen chain to network selector (#5766)
  prefer local chain image over custom (#5772)
  add safe math fns (#5765)
  filter out assets from curated assets with no icon_url (#5768)
  fix isQuoteStale lag (#5769)
  fix icon sizing (#5771)
  Preliminary work: Update formatter functions to take in object params (#5760)
  APP-1500 (#5763)
  chore: i18n updates (#5762)
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.

None yet

2 participants