From 646e1668a18e3dae57c056c63d3a70dba5af8e8f Mon Sep 17 00:00:00 2001 From: nazhmik Date: Thu, 20 Aug 2020 19:49:26 +0300 Subject: [PATCH] LIBS-95: change quantity field to amount in burnTx --- package-lock.json | 8 ++++---- src/schemas.ts | 2 +- test/exampleTxs.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29a3692..eb822d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@waves/marshall", - "version": "0.8.1", + "version": "0.10.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -493,9 +493,9 @@ "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "10.12.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.10.tgz", - "integrity": "sha512-8xZEYckCbUVgK8Eg7lf5Iy4COKJ5uXlnIOnePN0WUwSQggy9tolM+tDJf7wMOnT/JT/W9xDYIaYggt3mRV2O5w==", + "version": "12.12.54", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.54.tgz", + "integrity": "sha512-ge4xZ3vSBornVYlDnk7yZ0gK6ChHf/CHB7Gl1I0Jhah8DDnEQqBzgohYG4FX4p81TNirSETOiSyn+y1r9/IR6w==", "dev": true }, "@types/stack-utils": { diff --git a/src/schemas.ts b/src/schemas.ts index d58975a..40ca22d 100644 --- a/src/schemas.ts +++ b/src/schemas.ts @@ -298,7 +298,7 @@ export const burnSchemaV2: TSchema = { txFields.chainId, txFields.senderPublicKey, txFields.assetId, - txFields.quantity, + txFields.amount, txFields.fee, txFields.timestamp, ], diff --git a/test/exampleTxs.ts b/test/exampleTxs.ts index 26d720d..1261bd2 100644 --- a/test/exampleTxs.ts +++ b/test/exampleTxs.ts @@ -56,7 +56,7 @@ export const burnTx = { ['3JYfajBS1KJFSu3cdkF3f3JpH9kGVPR1R1YEgV7LHCHJyQXa82k7SMu9rqwpMvAqCXoQeJa5rEQPF9NY9rnufUan'], id: '6X7Fe82PcVeU9qMtscBA2fBzrSf96PtAwrynViR3zRjP', assetId: 'HWrQzacRTf3iWYpcRXdCGd6vF9VU5fL6Psy1ypfJYoM6', - quantity: 10000, + amount: 10000, } export const leaseTx = {