-
Notifications
You must be signed in to change notification settings - Fork 468
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
Feat: decode execTransaction SafeTransactions #4449
Feat: decode execTransaction SafeTransactions #4449
Conversation
This commit adds a new component called ExecTransaction, which is used in the TxData component to display nested transaction details.
… with `getConfirmationView`
Branch preview✅ Deploy successful! Storybook: |
📦 Next.js Bundle Analysis for safe-wallet-webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster. Any third party scripts you have added directly to your app using the If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! Eighteen Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success1584 tests passing in 209 suites. Report generated by 🧪jest coverage report action from f0739f0 |
src/components/transactions/TxDetails/TxData/ExecTransaction/index.tsx
Outdated
Show resolved
Hide resolved
src/components/transactions/TxDetails/TxData/ExecTransaction/index.tsx
Outdated
Show resolved
Hide resolved
src/components/transactions/TxDetails/TxData/ExecTransaction/index.tsx
Outdated
Show resolved
Hide resolved
|
||
const [dataDecoded, error] = useAsync(async () => { | ||
if (chain?.chainId && data?.to.value && childSafeTx) { | ||
return await getConfirmationView( |
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.
Can we try getting this from the preview endpoint instead? We want to eventually deprecate the confirmation view.
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 tried to change it quickly but the returned types are not fully compatible. So we need to adjust the component that renders the result.
Lets do it in a separate tech debt issue to reduce the scope.
src/components/transactions/TxDetails/TxData/ExecTransaction/index.tsx
Outdated
Show resolved
Hide resolved
src/components/transactions/TxDetails/TxData/ExecTransaction/index.tsx
Outdated
Show resolved
Hide resolved
…eat/decode-exec-transaction
What this PR changes
Properly decodes the child transaction when a parent Safe is calling execTransaction
How to test it
Screenshots
tbd
Checklist