Replies: 1 comment 2 replies
-
You probably want to use Then you can use The string inputs differ between the Fragment types, but the base Similarly, if you pass in a JSON ABI, the Fragment will figure it out, and the specific types will fail if you pass an event into a FunctionFragment, for example. // accepts the type within the string
Fragment.from("function foo()")
// expects the "function" to already be stripped
FunctionFragment.from("foo()") |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @ricmoo
User inputs abi. it could be human readable or plain solidity abi. If it's human readable, it could be string or array, and each member can be event type or function type..
I need to get the solidity abi in all cases. So I thought
parseSignature
would help me but that function doesn't exist anymore on abi coder..I also saw
from
andfrom
object, in the fragments, but not sure how to use it because there'sfunctionFragment
andeventFragment
both separately and they have separatefrom
functions.Any ideas ?
Beta Was this translation helpful? Give feedback.
All reactions