-
Notifications
You must be signed in to change notification settings - Fork 408
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
[SDK] Refactor: More Viem to Ox migration #5790
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
🦋 Changeset detectedLatest commit: 505a026 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
22cb834
to
59faac0
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5790 +/- ##
=======================================
Coverage 54.82% 54.83%
=======================================
Files 1141 1141
Lines 60877 60901 +24
Branches 5124 5121 -3
=======================================
+ Hits 33376 33393 +17
- Misses 26775 26782 +7
Partials 726 726
*This pull request uses carry forward flags. Click here to find out more.
|
@@ -304,7 +308,7 @@ | |||
dynamic, | |||
encoded: dynamic | |||
? encodeParams(preparedParams) | |||
: concat(preparedParams.map(({ encoded }) => encoded)), | |||
: ox__Hex.concat(...preparedParams.map(({ encoded }) => encoded)), |
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.
weird choice from ox to not accept an array for concat
@@ -134,6 +134,7 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential( | |||
account: smartAccount, | |||
}); | |||
expect(tx.transactionHash).toHaveLength(66); | |||
await sleep(1000); |
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.
you can use 'confirmContractDeployment' here i think
Merge activity
|
TOOL-0000 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on migrating functionality in the `thirdweb` package from `viem` to `ox`, improving consistency and possibly performance. It updates various files to utilize `ox` components, enhancing the codebase's integration with the `ox` library. ### Detailed summary - Migrated `maxUint256` imports from `viem` to `ox/Solidity` in multiple files. - Updated the `isErc6492Signature` function to use `ox__Hex.slice`. - Changed `decodeAbiParameters` to `ox__AbiParameters.decode`. - Replaced various utility functions with their `ox` equivalents across different modules. - Enhanced the `verifyHash` function to utilize `ox__Signature`. - Added new tests for `verifyContractWalletSignature` using `smartWallet`. - Updated the workflow file to include new pull request types. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
580f42e
to
505a026
Compare
TOOL-0000
PR-Codex overview
This PR focuses on migrating the
maxUint256
functionality fromviem
toox/Solidity
across multiple files, enhancing the codebase's consistency and reliance on theox
library. It also updates workflows and introduces new tests for verifying smart account signatures.Detailed summary
maxUint256
imports fromviem
toox/Solidity
in several files.ready_for_review
anddraft
in pull request triggers.isErc6492Signature
to useox__Hex.slice
.ox
library components.