Issue with extending WalletClient for custom actions using TypeScript #1599
Replies: 1 comment 3 replies
-
Here you go! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a feature to allow users to extend their wallet client with custom actions. However, I'm facing a type issue with
walletClient.writeContract
. Below is a minimal reproduction of the problem. It seems to be related toGetChain<TChain, undefined>
, but I'm not certain what's missing. This usage aligns with howwalletClient.writeContract
is typically used.I would greatly appreciate any insights or suggestions to resolve this.
Minimal Reproduction Code:
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgQQMaogVwHYwDQoAmhUApgM7kEDCAFgIbDYEAqU925ksBA6vQBsBpGNQHBSuOAF84AMygQQcAEQA3CSBUBuAFAZO8UlFQAmAAzIARsDgBeOAG1dcRC9dwmYTDHIAuJ3cPN2DgphhjbEEWAE8wUgCVemIyShU8INCokATVQgoYJnpCiGx0zOCYONyklIpyctCZDKaECo9wyOjqxMxw0wBWADZGprhsmvoQLFxRpqr43v7huY9pFo8AXQ3XCcSQcNWsGG9fAMdtzPIYYtIAWR96G3EqxOxSsHoYp+FVhZq5DhUCUyht1rpNnB6OQ4AZrnpdIDsMDgKU4KQAB5TMDCACiJgs-CEIjQIPIAB53Cw2BwuNAjBiIthCDCaZxuPAHGy6TwqXRGNh0YzJCy4PymHAAD5wHD5ORMUiEexihgS6Wy0jy7CKjYsNAYHAMpmi-UzeDq5mahVKhymw1SmWWrU63QAPgAFMYzJY6pQAshfeQAJQhOBkGCYKCC92ocSSGABInCURx3Dk6nsdn01ji5hwPXoM2ukN2V1wd1tYIHXAsCAAa0k-ih5BiyPLldC+WuRRBOw8UzNfekAQ7wS7hSiIP9gb0TQHhoCNgA5uFZ2sS2XRx44fBHPRC4bIQ56AB3RjwWMSXAAOiXJMDFHdQbXwXDkcFl-j15PUGAEWopQwOwwIVu0rjJCQ9QBF6FgBpBlB9sETzANBBKWDYiEeEiKKlAAclMNTVjAqxIVAS5No4449qiebzrglxjFCB64Jh0jPpk0hrmxejSLoQA
Beta Was this translation helpful? Give feedback.
All reactions