Skip to content
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: show message and domain hash #4394

Merged
merged 5 commits into from
Oct 18, 2024
Merged

feat: show message and domain hash #4394

merged 5 commits into from
Oct 18, 2024

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Oct 18, 2024

What it solves

Resolves #4391

How this PR fixes it

Shows the internal message and domain hashes next to the safeTxHash.

How to test it

  • Create any Safe tx
  • Observe the new hashes in the Advanced details
  • Compare them with e.g. the message and domain hash a Ledger Nano S displays.

Screenshots

Screenshot 2024-10-18 at 15 55 54

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

Copy link

github-actions bot commented Oct 18, 2024

Comment on lines 29 to 38
<TxDataRow datatestid="tx-safe-hash" title="safeTxHash:">
{generateDataRowValue(safeTxHash, 'hash')}
</TxDataRow>
<TxDataRow datatestid="tx-safe-hash" title="Domain hash:">
{generateDataRowValue(domainHash, 'hash')}
</TxDataRow>
{messageHash && (
<TxDataRow datatestid="tx-safe-hash" title="Message hash:">
{generateDataRowValue(messageHash, 'hash')}
</TxDataRow>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably not use the same data-testid for all three rows. Could cause issues in the future with e2e tests.

Copy link

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 993.94 KB (🟡 +396 B)
Details

The 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 <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
73.65% (-0.02% 🔻)
13511/18344
🔴 Branches
51.42% (-0.07% 🔻)
3280/6379
🔴 Functions
57.2% (-0% 🔻)
1967/3439
🟡 Lines
75.36% (-0.02% 🔻)
12286/16303
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟡
... / index.tsx
54.55% 0% 0% 60%

Test suite run success

1573 tests passing in 208 suites.

Report generated by 🧪jest coverage report action from ae01330

@schmanu schmanu merged commit 776c5ce into dev Oct 18, 2024
15 checks passed
@schmanu schmanu deleted the ledger-hash branch October 18, 2024 15:24
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Message Hash of Ledger to UI
3 participants