-
Notifications
You must be signed in to change notification settings - Fork 177
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: borked walletconnect v2 send transaction confirmation #4978
Conversation
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
src/plugins/walletConnectToDapps/v2/components/modals/EIP155TransactionConfirmation.tsx
Show resolved
Hide resolved
src/plugins/walletConnectToDapps/v2/components/modals/EIP155TransactionConfirmation.tsx
Show resolved
Hide resolved
nonce: transaction?.nonce ? convertHexToNumber(transaction.nonce).toString() : undefined, | ||
gasLimit: | ||
transaction?.gasLimit ?? transaction?.gas | ||
? convertHexToNumber((transaction?.gasLimit ?? transaction?.gas)!).toString() |
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.
Are we guaranteed to have either a gas
or a gasLimit
?
If not we might want to fallback to 0
or something so we don't throw.
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.
One comment above on type safety, otherwise seems sane pending ops testing.
Description
Makes WalletConnect transaction confirmation modal happy again, though the actual broadcasting still seems to be broken, with no error nor failed (or successful) XHR
tl;dr is we were too strict/not accurate on what makes a transaction a transaction, and throwing at
isTransactionParams
time.Pull Request Type
Issue (if applicable)
tackles #4976
Risk
Transaction detection and gas params may be broken, though WalletConnect to dApps seems to be entirely broken at the moment so can't make it more broken?
Testing
Engineering
closes
Operations
Screenshots (if applicable)
App crashes