-
-
Notifications
You must be signed in to change notification settings - Fork 974
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: #2531 value types function overload #2560
Fix: #2531 value types function overload #2560
Conversation
Fixes this error ``` Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/yuri/Sites/polkadot/viem/node_modules/is-plain-obj/index.js from /Users/yuri/Sites/polkadot/viem/node_modules/minimist-options/index.js not supported. Instead change the require of /Users/yuri/Sites/polkadot/viem/node_modules/is-plain-obj/index.js in /Users/yuri/Sites/polkadot/viem/node_modules/minimist-options/index.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/Users/yuri/Sites/polkadot/viem/node_modules/minimist-options/index.js:3:23) at Object.<anonymous> (/Users/yuri/Sites/polkadot/viem/node_modules/meow/index.js:3:28) at Object.<anonymous> (/Users/yuri/Sites/polkadot/viem/node_modules/@changesets/cli/dist/cli.cjs.dev.js:3:12) at Object.<anonymous> (/Users/yuri/Sites/polkadot/viem/node_modules/@changesets/cli/dist/cli.cjs.js:6:20) at Object.<anonymous> (/Users/yuri/Sites/polkadot/viem/node_modules/@changesets/cli/bin.js:4:1) { code: 'ERR_REQUIRE_ESM' } ```
This reverts commit 103f688.
…changeset" This reverts commit 591f0f7.
…e not commited" This reverts commit ae24aa8.
|
@Yuripetusko is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
* fixes #2560 value type on function overload * Create new-hotels-sell.md * revert GetValue changes and create new GetMutabilityAwareValue type * remove un-used test * revert test abi * use mutability aware type util on writeContract too * fix: wrong import * lint * fix import * Update .changeset/new-hotels-sell.md --------- Co-authored-by: Tom Meagher <[email protected]>
fixes #2531. Infer
value
type for function overload where some of the functions are payable and others arent. Using args to find the matching function from overload union, then picking it's value typeP.S. Not sure why it shows so many commits. Probably needed to cut a new branch from upstream 🤔
PR-Codex overview
This PR introduces changes related to estimating contract fees and gas, adding a new function
mint
, updating contract ABIs, and refining contract writing actions.Detailed summary
mint
function withpayable
state to contract ABIsGetValue
function signatures to includemutability
andargs
GetValue
functionviem
package