Replies: 3 comments 1 reply
-
Yes there is. This imho deserves its own section in the docs at some point (how to utilize the type system and adding your own abstraction & functions around it). Best way to learn how to use the generics for this case is to look at the source code of the function(s) you are trying to call. E.g. What's most relevant here is the generic: TAbi extends Abi | readonly unknown[] For bytecode, btw., it's probably sufficient to just type it as |
Beta Was this translation helpful? Give feedback.
-
Note that if you want to derive args from the abi you'll have to utilize other generics too (e.g. |
Beta Was this translation helpful? Give feedback.
-
Using
|
Beta Was this translation helpful? Give feedback.
-
Hello, I am try to create a function which deploys arbitrary contract and I am struggling with setting a type for abi.
How would I do that?
Is there a type for "generic abi thing", "generic event thing" etc.?
Beta Was this translation helpful? Give feedback.
All reactions