wevm / abitype

Strict TypeScript types for Ethereum ABIs
https://abitype.dev
MIT License
474 stars 39 forks source link

fix: parse Abi with zod as readonly array #200

Closed mathieu-bour closed 11 months ago

mathieu-bour commented 11 months ago

Description

Supersedes #197

This PR sets the zod Abi schema from abitype/zod as readonly [] to match the Abi type declared in abitype.

Additional Information

Before submitting this issue, please make sure you do the following.


PR-Codex overview

Focus of the PR:

The focus of this PR is to mark the Abi Zod schema as readonly.

Detailed summary:

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

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: eb55b390053854778d20c5545665fb9df0d6cde1

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

This PR includes changesets to release 1 package | Name | Type | | ------- | ----- | | abitype | 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

vercel[bot] commented 11 months ago

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

Name Status Preview Comments Updated (UTC)
abitype ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 7:32am
commit-lint[bot] commented 11 months ago

Bug Fixes

Chore

Contributors

mathieu-bour

Commit-Lint commands
You can trigger Commit-Lint actions by commenting on this PR: - `@Commit-Lint merge patch` will merge dependabot PR on "patch" versions (X.X.Y - Y change) - `@Commit-Lint merge minor` will merge dependabot PR on "minor" versions (X.Y.Y - Y change) - `@Commit-Lint merge major` will merge dependabot PR on "major" versions (Y.Y.Y - Y change) - `@Commit-Lint merge disable` will desactivate merge dependabot PR - `@Commit-Lint review` will approve dependabot PR - `@Commit-Lint stop review` will stop approve dependabot PR
codecov[bot] commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (f8abb47) 99.83% compared to head (eb55b39) 99.83%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #200 +/- ## ======================================= Coverage 99.83% 99.83% ======================================= Files 26 26 Lines 6076 6082 +6 Branches 195 195 ======================================= + Hits 6066 6072 +6 Misses 8 8 Partials 2 2 ``` | [Files](https://app.codecov.io/gh/wagmi-dev/abitype/pull/200?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wagmi-dev) | Coverage Δ | | |---|---|---| | [packages/abitype/src/zod.ts](https://app.codecov.io/gh/wagmi-dev/abitype/pull/200?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wagmi-dev#diff-cGFja2FnZXMvYWJpdHlwZS9zcmMvem9kLnRz) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.