You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function test(address, overrides)
function test(address, amount, overrides)
In Javascript function overloading isn't applicable due to hoisting.
so when i call the contract function test the 3 params are available in typescripts scope, but it would invoke all sorts of strange issues.
Particularly when I pass overrides as position 2 in the function.
I'm looking for a solution to work around this, and was wondering how other people have handled this?
P.S. Love this library it's a god send <3
The text was updated successfully, but these errors were encountered:
Hey hey super interesting I actually not dealt with an ABI with multiple exposed public overloads!! A little bit of digging I’ve found some chat about how it’s dealt with in ethers ethers-io/ethers.js#407
I’m not sure how I can fix this in this lib as this is purely a interface wrapper which holds no logic at all! So I would suggest calling the overload as that issue says! I will look into this more to see if I can force typing in that syntax they use!
In my ABI I have overloaded functions;
In Javascript function overloading isn't applicable due to hoisting.
so when i call the contract function test the 3 params are available in typescripts scope, but it would invoke all sorts of strange issues.
Particularly when I pass overrides as position 2 in the function.
I'm looking for a solution to work around this, and was wondering how other people have handled this?
P.S. Love this library it's a god send <3
The text was updated successfully, but these errors were encountered: