-
Notifications
You must be signed in to change notification settings - Fork 862
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(wallet): View Contract in Transaction Panel #17333
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
CI/storybook-url
Deploy storybook and provide a unique URL for each build
label
Feb 22, 2023
josheleonard
suggested changes
Feb 22, 2023
A Storybook has been deployed to preview UI for the latest push |
Douglashdaniel
force-pushed
the
view-contract-in-transaction-panel
branch
from
February 22, 2023 20:47
d31ca1a
to
56d656d
Compare
josheleonard
approved these changes
Feb 22, 2023
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.
LGTM
A Storybook has been deployed to preview UI for the latest push |
diracdeltas
reviewed
Feb 22, 2023
...brave_wallet_ui/components/extension/confirm-transaction-panel/confirm-transaction-panel.tsx
Show resolved
Hide resolved
Douglashdaniel
force-pushed
the
view-contract-in-transaction-panel
branch
from
February 22, 2023 22:20
56d656d
to
05c6fda
Compare
diracdeltas
reviewed
Feb 22, 2023
diracdeltas
approved these changes
Feb 22, 2023
Douglashdaniel
force-pushed
the
view-contract-in-transaction-panel
branch
from
February 22, 2023 22:33
05c6fda
to
efe1394
Compare
A Storybook has been deployed to preview UI for the latest push |
pls uplift |
7 tasks
Douglashdaniel
added a commit
that referenced
this pull request
Mar 2, 2023
fix(wallet): View Contract in Transaction Panel
Verification passed on
17333.mp4 |
kjozwiak
pushed a commit
that referenced
this pull request
Mar 2, 2023
…17426) * Add eth_getCode support for getting address bytecode (#17215) This is intended to be used to check if an address is an EOA or a contract You can query ```js const apiProxy = getWalletPanelApiProxy() const jsonRpcService = apiProxy.jsonRpcService console.log('BAT rpc service get code: ', await jsonRpcService.getCode('0x0d8775f648430679a709e98d2b0cb6250d2887ef', BraveWallet.CoinType.ETH, '0x1')) console.log('EOA rpc service get code: ', await jsonRpcService.getCode('0x...', BraveWallet.CoinType.ETH, '0x1')) ``` This would output the bytecode in hex format for the BAT price and the string 0x for the EOA address. * Merge pull request #17333 from brave/view-contract-in-transaction-panel fix(wallet): View Contract in Transaction Panel --------- Co-authored-by: Brian R. Bondy <netzen@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds the ability to view the
Contract
of a transaction you are signing.Resolves brave/brave-browser#27188
Submitter 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:
Goerli Test Network
and visit http://localhost:8081/request.htmlethereum.enable
and grant permissioneth_signTransaction
with anotherWallet Address
and then clicketh_signTransaction
From -> To
address should look normaleth_signTransaction
with0x121FD74f3e8b5D5409D65535b19a86E3aEF20E42
(Bubble Farming) and then clicketh_signTransaction
To
address should change toContract address
Address
and it should route you to theblock-explorer
where you can read the contract information for (Bubble Framing).ContractAddress.mov