-
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
OriginInfo for TransactionInfo #12987
Conversation
233586b
to
ec1f7fb
Compare
defaultCurrencies, | ||
selectedPendingTransaction: transactionInfo | ||
} = useSelector(({ wallet }: { wallet: WalletState }) => wallet) | ||
|
||
const originInfo = transactionInfo?.originInfo ?? activeOrigin |
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.
"Legacy" transactions coming from prefs won't have originInfo(hence it is optional). Falling back to activeOrigin as it worked before. But maybe that case should be presented in UI in some special way.
@@ -655,10 +655,12 @@ export async function sendEthTransaction (store: Store, payload: SendEthTransact | |||
gasEstimation: undefined | |||
} | |||
// @ts-expect-error google closure is ok with undefined for other fields but mojom runtime is not | |||
addResult = await apiProxy.txService.addUnapprovedTransaction({ ethTxData1559: txData1559 }, payload.from) | |||
const txDataUnion: BraveWallet.TxDataUnion = { ethTxData1559: txData1559 }; | |||
addResult = await apiProxy.txService.addUnapprovedTransaction(txDataUnion, payload.from, null) |
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.
null here as last argument so chrome://wallet will be set as origin
bd8ddb6
to
8f2e02e
Compare
8f2e02e
to
19f8b73
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.
LGTM nice work
A Storybook has been deployed to preview UI for the latest push |
Resolves brave/brave-browser#21915
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: