-
Notifications
You must be signed in to change notification settings - Fork 896
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
Add eth_signTransaction and eth_sendRawTransaction #16247
Conversation
f151950
to
628422f
Compare
A Storybook has been deployed to preview UI for the latest push |
628422f
to
b134c0f
Compare
A Storybook has been deployed to preview UI for the latest push |
8dac776
to
1602724
Compare
A Storybook has been deployed to preview UI for the latest push |
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.
++
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.
Looks good, just some questions and a minor text correction.
@@ -510,6 +511,8 @@ | |||
<message name="IDS_BRAVE_WALLET_ACCOUNT_FILTER_ALL_ACCOUNTS" desc="Account Filter Selector All Accounts">All Accounts</message> | |||
<message name="IDS_BRAVE_WALLET_TRANSACTION_SUBMITTED_TITLE" desc="Transaction submitted title">Transaction submitted</message> | |||
<message name="IDS_BRAVE_WALLET_TRANSACTION_SUBMITTED_DESCRIPTION" desc="Transaction submitted description">Transaction has been successfully sent to the network and awaits confirmation.</message> | |||
<message name="IDS_BRAVE_WALLET_TRANSACTION_SIGNED_TITLE" desc="Transaction signed title">Transaction signed</message> | |||
<message name="IDS_BRAVE_WALLET_TRANSACTION_SIGNED_DESCRIPTION" desc="Transaction signed description">Transaction has been signed and will be sent to network by dapps and awaits confirmation</message> |
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.
The transaction has been signed and will be sent to the network by the DApp
@@ -982,7 +984,8 @@ enum TransactionStatus { | |||
Submitted = 3, | |||
Confirmed = 4, | |||
Error = 5, | |||
Dropped = 6 | |||
Dropped = 6, | |||
Signed = 7 // dapps will submit the transaction |
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.
Does this need to be flagged to iOS or Android for handling in any switches?For Android is there anything in this PR that is needed?
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.
For Desktop, do we need anything in any of these which have other switch cases?
components/brave_wallet_ui/components/shared/style.tsx
components/brave_wallet_ui/components/extension/confirm-transaction-panel/confirm-solana-transaction-panel.tsx
components/brave_wallet_ui/components/desktop/portfolio-transaction-item/index.tsx
(You have one covered in this file but there's another place)
I just did git grep \\.Dropped
to get this list.
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.
Yes, iOS and Android need to handle the new tx status on UI. cc @SergeyZhukovsky @StephenHeaps.
git grep TransactionStatus\\.
is more precise so you can see what is being used on Android.
I will check desktop UI for missing parts.
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.
I don't see other changes needed on desktop UI except components/brave_wallet_ui/components/shared/style.tsx
to update its opacity
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.
I will open two issues for iOS and Android as follow-up
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.
8980246
to
bc1a0fe
Compare
bc1a0fe
to
8be035a
Compare
8be035a
to
bb75b2c
Compare
A Storybook has been deployed to preview UI for the latest push |
bb75b2c
to
6e3b544
Compare
A Storybook has been deployed to preview UI for the latest push |
Resolves brave/brave-browser#23582
eth_sendRawTransaction
which doesn't need confirmation like MetaMask because it doesn't have account actionseth_signTransaction
by adding additionalsignOnly
andsignedTransaction
passed along witheth_sendTransaction
code flowSubmitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Normal flow
ethereum.enable
and grant permissioneth_signTransaction
and click iteth_sendRawTransaction
and clickNonce drop
ethereum.enable
and grant permissioneth_signTransaction
and click iteth_signTransaction (1559)
and click iteth_sendRawTransaction
and click