Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with "Metadata not supported yet" #271

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

volodymyr-basiuk
Copy link
Collaborator

@volodymyr-basiuk volodymyr-basiuk commented Sep 18, 2024

we have added in contracts this check for metadata:
if (response.data.length > 0) { revert("Metadata not supported yet"); }

if we encode an empty array in sdk:
metas = [];
this._abiCoder.encode(['tuple(' + 'string key,' + 'bytes value' + ')[]'], [metas]);
it would give not empty meta:
0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

@vmidyllic vmidyllic merged commit db11c72 into main Sep 19, 2024
2 checks passed
@vmidyllic vmidyllic deleted the fix/pack-empty-metadatas branch September 19, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants