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

fix: encodeDeployData type should accept no constructor #2374

Conversation

roninjin10
Copy link
Contributor

@roninjin10 roninjin10 commented Jun 7, 2024

Some contracts do not have a constructor and should be allowed by the typesystem.


PR-Codex overview

This PR updates the EncodeDeployDataParameters type and refactors the encodeDeployData function to handle cases when ABI has no constructor.

Detailed summary

  • Updated EncodeDeployDataParameters type
  • Refactored encodeDeployData function to handle ABI with no constructor and optional args

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

Copy link

vercel bot commented Jun 7, 2024

Someone is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

changeset-bot bot commented Jun 7, 2024

🦋 Changeset detected

Latest commit: d1175f8

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

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

@jxom jxom merged commit a81965e into wevm:main Jun 11, 2024
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants