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
This will cause a problem, the developer can't get the correct structure of the enums in the contract through the metadata, and can't construct the correct bcs struct through the metadata.
To summarise, we want metadata to return information that is consistent with the contract code. In the current scenario, the corresponding metadata would be:
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!
The enum variants field returned by metadata is sorted and is not in the same order as the contract settings.
this is my contract
this is the metadata of my contract:
This will cause a problem, the developer can't get the correct structure of the enums in the contract through the metadata, and can't construct the correct bcs struct through the metadata.
To summarise, we want metadata to return information that is consistent with the contract code. In the current scenario, the corresponding metadata would be:
The text was updated successfully, but these errors were encountered: