Skip to content

Commit

Permalink
Bump version. Fix some whitespace, as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Aug 31, 2023
1 parent d8b4893 commit 779c3a8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-core",
"version": "12.7.1",
"version": "12.8.0",
"description": "MultiversX SDK for JavaScript and TypeScript",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down
32 changes: 16 additions & 16 deletions src/smartcontracts/nativeSerializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,28 +333,28 @@ describe("test native serializer", () => {

it('should accept no value for variadic types', async () => {
const endpoint = AbiRegistry.create({
endpoints: [
{
name: 'foo',
inputs: [
endpoints: [
{
type: 'u64',
},
{
name: 'features',
type: 'variadic<bytes>',
multi_arg: true,
name: 'foo',
inputs: [
{
type: 'u64',
},
{
name: 'features',
type: 'variadic<bytes>',
multi_arg: true,
},
],
outputs: [],
},
],
outputs: [],
},
],
],
}).getEndpoint('foo');

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

assert.deepEqual(typedValues[0].getType(), new U64Type());
Expand Down

0 comments on commit 779c3a8

Please sign in to comment.