ha awesome, so simple
It does provide some extra challenges, since the ABI for each contract are set in my CMS, so I’ll look into stripping the ABI automatically from that ‘double’ entry in the future. Thanks for using your bright mind this morning!
Update: safeTransferFrom is an overloaded function. In ethers, the syntax to call an overloaded contract function is different from the non-overloaded function. Ethers.js doc
Sure, i’ve pushed a new branch with a the fix in my fork here:
I’ve added a flag called ‘functionOverload’ to toggle using an ‘overloaded’ contract function, which I use to adjust the functionName to the right format, so including the input type names:
The way to call it is simply by adding functionOverload: true to the sendOptions:
And here you can see that there are 2 same functions defined in the contract, but using different params. To keep them apart, you need to use the overloaded format described: