Replies: 1 comment
-
In v5 you must use the normalized name if you have multiple functions with the same name. In v6, which uses Proxy, this can be resolved by the library so non-normalized signatures will be supported. So for v5, you either need to use the normalized name or remove conflicting methods (those with the same name) and then you can use it directly by its name. Does that make sense? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The ABI input type for a overloaded function that takes in an array of nested structs seems to be:
struct <contractName>.<nameOfStruct>[]
. so when i overload the function:contract["function(struct <contractName>.<nameOfStruct>[])"](arg)
it gives me the erroris not a function
. i have to go and manually input the arg type for each field in the struct as part of the overload call and only then it works. for ex: contract"function((int,(int, int),(int,int))[])"`I'm using ethers on hardhat.
for ex:
Beta Was this translation helpful? Give feedback.
All reactions