Skip to content

Commit

Permalink
update variadic serialization no-value test
Browse files Browse the repository at this point in the history
  • Loading branch information
michavie committed Jun 26, 2023
1 parent a4c707c commit d568b9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/smartcontracts/nativeSerializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ describe("test native serializer", () => {
assert.deepEqual(typedValues[2].valueOf(), [{ field0: new BigNumber(44), field1: false }, { field0: new BigNumber(45), field1: true }]);
});

it('should accept an empty value for variadic types', async () => {
it('should accept no value for variadic types', async () => {
const endpoint = AbiRegistry.create({
endpoints: [
{
Expand All @@ -261,6 +261,7 @@ describe("test native serializer", () => {
{
name: 'features',
type: 'variadic<bytes>',
multi_arg: true,
},
],
outputs: [],
Expand All @@ -270,7 +271,7 @@ describe("test native serializer", () => {

// Using both native JavaScript objects and typed values
const typedValues = NativeSerializer.nativeToTypedValues(
[42, ...[]],
[42],
endpoint
);

Expand Down

0 comments on commit d568b9c

Please sign in to comment.