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 variadic serialization when no value given #307

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

michavie
Copy link
Contributor

@michavie michavie commented Jun 22, 2023

For reference: #306

@michavie michavie changed the title Fix variadic values serialization Fix empty variadic values serialization Jun 22, 2023
@michavie michavie changed the title Fix empty variadic values serialization Fix variadic serialization when no value given Jun 26, 2023
@andreibancioiu andreibancioiu self-requested a review June 27, 2023 08:12
assert.deepEqual(typedValues[0].getType(), new U64Type());
assert.deepEqual(typedValues[0].valueOf(), new BigNumber(42));
assert.deepEqual(typedValues[1].getType(), new VariadicType(new BytesType()));
assert.deepEqual(typedValues[1].valueOf(), []);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andreibancioiu andreibancioiu merged commit 7c12033 into multiversx:main Jun 27, 2023
1 check passed
@michavie michavie deleted the variadic-serialization-fix branch June 27, 2023 10:04
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