From afd4c11e60ffd8be03e129cbe3003860cd70be41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Thu, 21 Mar 2024 19:03:32 +0200 Subject: [PATCH] More robust conversion of plain object to Transaction (same as v12). --- package-lock.json | 4 ++-- package.json | 2 +- src/converters/transactionsConverter.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 617db93e..7915458b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.7", + "version": "13.0.0-beta.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.7", + "version": "13.0.0-beta.8", "license": "MIT", "dependencies": { "@multiversx/sdk-transaction-decoder": "1.0.2", diff --git a/package.json b/package.json index a553e106..970a10c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.7", + "version": "13.0.0-beta.8", "description": "MultiversX SDK for JavaScript and TypeScript", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/converters/transactionsConverter.ts b/src/converters/transactionsConverter.ts index c45c3de6..92cb6f75 100644 --- a/src/converters/transactionsConverter.ts +++ b/src/converters/transactionsConverter.ts @@ -45,8 +45,8 @@ export class TransactionsConverter { gasLimit: BigInt(object.gasLimit), data: this.bufferFromBase64(object.data), chainID: String(object.chainID), - version: object.version, - options: object.options, + version: Number(object.version), + options: Number(object.options), signature: this.bufferFromHex(object.signature), guardianSignature: this.bufferFromHex(object.guardianSignature), });