Skip to content

Commit

Permalink
fix: getContract estimateGas (#572)
Browse files Browse the repository at this point in the history
* wip: fix getContract estimateGas

* chore: rome config

* feat: estimateGas with wallet client

* chore: rome

* chore: format

* chore: changeset

---------

Co-authored-by: tmm <tmm@users.noreply.github.com>
  • Loading branch information
tmm and tmm committed May 24, 2023
1 parent f93ec5f commit 3e5bcbf
Show file tree
Hide file tree
Showing 9 changed files with 369 additions and 262 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-dingos-repair.md
@@ -0,0 +1,5 @@
---
"viem": patch
---

Fixed contract instance `estimateGas` typing.
69 changes: 18 additions & 51 deletions package.json
Expand Up @@ -111,39 +111,17 @@
},
"typesVersions": {
"*": {
"abi": [
"./dist/types/abi.d.ts"
],
"accounts": [
"./dist/types/accounts/index.d.ts"
],
"chains": [
"./dist/types/chains.d.ts"
],
"contract": [
"./dist/types/contract.d.ts"
],
"ens": [
"./dist/types/ens.d.ts"
],
"ethers": [
"./dist/types/ethers.d.ts"
],
"public": [
"./dist/types/public.d.ts"
],
"test": [
"./dist/types/test.d.ts"
],
"utils": [
"./dist/types/utils/index.d.ts"
],
"wallet": [
"./dist/types/wallet.d.ts"
],
"window": [
"./dist/types/window.d.ts"
]
"abi": ["./dist/types/abi.d.ts"],
"accounts": ["./dist/types/accounts/index.d.ts"],
"chains": ["./dist/types/chains.d.ts"],
"contract": ["./dist/types/contract.d.ts"],
"ens": ["./dist/types/ens.d.ts"],
"ethers": ["./dist/types/ethers.d.ts"],
"public": ["./dist/types/public.d.ts"],
"test": ["./dist/types/test.d.ts"],
"utils": ["./dist/types/utils/index.d.ts"],
"wallet": ["./dist/types/wallet.d.ts"],
"window": ["./dist/types/window.d.ts"]
}
},
"dependencies": {
Expand All @@ -169,37 +147,28 @@
"@vitest/coverage-c8": "^0.30.1",
"@vitest/ui": "^0.30.1",
"@wagmi/cli": "^0.1.6",
"bun": "^0.5.5",
"bun": "^0.5.9",
"ethers": "^5.7.2",
"ethers@6": "npm:ethers@^6.0.2",
"fs-extra": "^10.1.0",
"rimraf": "^4.1.2",
"rome": "^12.0.0",
"rimraf": "^4.4.1",
"rome": "~12.0.0",
"simple-git-hooks": "^2.8.1",
"size-limit": "^8.2.4",
"typescript": "^5.0.3",
"typescript": "^5.0.4",
"vite": "^4.1.4",
"vitest": "~0.30.1"
},
"license": "MIT",
"repository": "wagmi-dev/viem",
"authors": [
"awkweb.eth",
"jxom.eth"
],
"authors": ["awkweb.eth", "jxom.eth"],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/wagmi-dev"
}
],
"keywords": [
"eth",
"ethereum",
"dapps",
"wallet",
"web3"
],
"keywords": ["eth", "ethereum", "dapps", "wallet", "web3"],
"size-limit": [
{
"path": "./dist/cjs/index.js"
Expand All @@ -217,9 +186,7 @@
"vitepress@1.0.0-alpha.61": "patches/vitepress@1.0.0-alpha.61.patch"
},
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"
]
"ignoreMissing": ["@algolia/client-search"]
}
}
}

1 comment on commit 3e5bcbf

@vercel
Copy link

@vercel vercel bot commented on 3e5bcbf May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.