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
See the function fail. Reason is there are two mintAndRegisterIpAndAttachPILTerms functions defined on the licenseAttachmentWorkflowsAbi and viem doesn't know how to resolve the ambiguity between these two signatures with tuple and tuple[] terms arguments.
Expected behavior
This function to be usable
Screenshots
Environment (please complete the following information):
Node v20.12.2
Viem v2.17.5
Additional context
I may agree this is a bug in viem but this makes this function completely unusable. Is there a way that we can filter out the conflicting function signature from the abi in this mintAndRegisterIpAndAttachPilTerms2Encode function or maybe using this.rpcClient.simulateContract in the same way as we do in mintAndRegisterIpAndAttachPilTerms2?
The text was updated successfully, but these errors were encountered:
alberto-crossmint
changed the title
mintAndRegisterIpAssetWithPilTerms crashes when encodedTxDataOnly=true due to ABI conflictmintAndRegisterIpAssetWithPilTerms crashes when encodedTxDataOnly is set due to ABI conflict
Dec 11, 2024
Thank you for identifying the issue. May I ask which version you're using? I tested it with @story-protocol/[email protected], and it worked well. I hope this helps resolve your question.
Describe the bug
mintAndRegisterIpAssetWithPilTerms
crashes when we use it for calculating the calldata instead of for sending the transaction. Reason below 👇To Reproduce
mintAndRegisterIpAssetWithPilTerms
function with this license terms andencodedTxDataOnly
totrue
. Example:mintAndRegisterIpAndAttachPILTerms
functions defined on thelicenseAttachmentWorkflowsAbi
and viem doesn't know how to resolve the ambiguity between these two signatures withtuple
andtuple[]
terms arguments.Expected behavior
This function to be usable
Screenshots
Environment (please complete the following information):
v20.12.2
v2.17.5
Additional context
I may agree this is a bug in viem but this makes this function completely unusable. Is there a way that we can filter out the conflicting function signature from the abi in this
mintAndRegisterIpAndAttachPilTerms2Encode
function or maybe usingthis.rpcClient.simulateContract
in the same way as we do inmintAndRegisterIpAndAttachPilTerms2
?The text was updated successfully, but these errors were encountered: