You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support hex transaction types in fromTransactionType (#861)
## Changes
- Linear: https://linear.app/thirdweb/issue/INF-171/
- Here is the problem being solved.
- Here are the changes made.
## How this PR will be tested
- [ ] Open the dashboard and click X. Result: A modal should appear.
- [ ] Call the /foo/bar API. Result: Returns 200 with "baz" in the response body.
## Output
(Example: Screenshot/GIF for UI changes, cURL output for API changes)
<!-- start pr-codex -->
---
## PR-Codex overview
This PR modifies the `src/shared/utils/sdk.ts` file by enhancing the `fromTransactionType` function and removing the `toTransactionType` function, streamlining transaction type handling.
### Detailed summary
- Added `hexToNumber` and `isHex` imports from `thirdweb`.
- Updated `fromTransactionType` to convert hex transaction types using `hexToNumber`.
- Removed the entire `toTransactionType` function.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0 commit comments