Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Nov 6, 2024

https://linear.app/thirdweb/issue/CNCT-2099/enclaves-malform-contract-call-transactions


PR-Codex overview

This PR focuses on fixing the ecosystem signing process by addressing a data error in the thirdweb wallet implementation.

Detailed summary

  • Updated the to field in the transaction object to use getAddress(tx.to) instead of casting to Hex.
  • Changed the data field to directly assign tx.data without modification.
  • Other fields (value, gas, nonce) remain unchanged.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 1:01am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 1:01am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 1:01am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 1:01am

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2024

🦋 Changeset detected

Latest commit: 87e736d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 6, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 3.8 s (-18.98% 🔽) 4.6 s
thirdweb (cjs) 103 KB (0%) 2.1 s (0%) 7.4 s (+27.29% 🔺) 9.5 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 97 ms (0%) 123 ms (+5.41% 🔺) 220 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 63 ms (+52.58% 🔺) 73 ms
thirdweb/react (minimal + tree-shaking) 17.51 KB (0%) 351 ms (0%) 443 ms (-68.58% 🔽) 793 ms

@ElasticBottle ElasticBottle added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 6, 2024
Copy link
Contributor Author

ElasticBottle commented Nov 6, 2024

Merge activity

  • Nov 5, 7:48 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 5, 7:58 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 5, 8:01 PM EST: A user merged this pull request with the Graphite merge queue.

@codecov
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.61%. Comparing base (d7f161b) to head (87e736d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5315      +/-   ##
==========================================
+ Coverage   45.59%   45.61%   +0.02%     
==========================================
  Files        1069     1068       -1     
  Lines       55584    55556      -28     
  Branches     4045     4047       +2     
==========================================
- Hits        25342    25341       -1     
+ Misses      29552    29525      -27     
  Partials      690      690              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from d7f161b
packages 40.72% <ø> (+0.02%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

see 1 file with indirect coverage changes

https://linear.app/thirdweb/issue/CNCT-2099/enclaves-malform-contract-call-transactions

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing an error related to ecosystem signing with data in the `thirdweb` wallet implementation. It adjusts how transaction details are processed, particularly the `to` and `data` fields.

### Detailed summary
- Updated the `to` field in the transaction object to use `getAddress(tx.to)` instead of a fallback to `undefined`.
- Changed the `data` field assignment to directly use `tx.data` without transformation.
- The rest of the transaction fields remain unchanged.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants