Skip to content

Commit

Permalink
Update native serializer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Sep 5, 2024
1 parent 0d9e486 commit 5a11659
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/smartcontracts/nativeSerializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ describe("test native serializer", () => {
{
type: "u64",
},
{
type: "ManagedDecimal<8>",
},
{
type: "ManagedDecimal<usize>",
},
],
outputs: [],
},
Expand All @@ -370,8 +364,6 @@ describe("test native serializer", () => {
[45, true],
],
46,
[2, 8],
[12.5644, 6],
],
endpoint,
);
Expand All @@ -385,10 +377,6 @@ describe("test native serializer", () => {
{ field0: new BigNumber(44), field1: false },
{ field0: new BigNumber(45), field1: true },
]);
assert.deepEqual(typedValues[4].getType(), new ManagedDecimalType(8));
assert.deepEqual(typedValues[4].valueOf(), new BigNumber(2));
assert.deepEqual(typedValues[5].getType(), new ManagedDecimalType("usize"));
assert.deepEqual(typedValues[5].valueOf(), new BigNumber(12.5644));

// Pass a mix of native and typed values
typedValues = NativeSerializer.nativeToTypedValues(
Expand All @@ -400,8 +388,6 @@ describe("test native serializer", () => {
[45, new BooleanValue(true)],
],
46,
[2, 8],
[2, 6],
],
endpoint,
);
Expand Down

0 comments on commit 5a11659

Please sign in to comment.