diff --git a/package-lock.json b/package-lock.json index 4cbe3b6d..30e00170 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@multiversx/sdk-core", - "version": "12.2.0", + "version": "12.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@multiversx/sdk-core", - "version": "12.2.0", + "version": "12.2.1", "license": "MIT", "dependencies": { "@multiversx/sdk-transaction-decoder": "1.0.2", diff --git a/package.json b/package.json index dd7058fa..8a6cbaf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-core", - "version": "12.2.0", + "version": "12.2.1", "description": "MultiversX SDK for JavaScript and TypeScript", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/proto/serializer.ts b/src/proto/serializer.ts index afb6ca9e..448d622e 100644 --- a/src/proto/serializer.ts +++ b/src/proto/serializer.ts @@ -5,7 +5,7 @@ import * as errors from "../errors"; import { ITransactionValue } from "../interface"; import { bigIntToBuffer } from "../smartcontracts/codec/utils"; import { Transaction } from "../transaction"; -import { proto } from "./compiled"; + /** * Hides away the serialization complexity, for each type of object (e.g. transactions). @@ -16,6 +16,7 @@ export class ProtoSerializer { * Serializes a Transaction object to a Buffer. Handles low-level conversion logic and field-mappings as well. */ serializeTransaction(transaction: Transaction): Buffer { + const proto = require("./compiled").proto; const receiverPubkey = new Address(transaction.getReceiver().bech32()).pubkey(); const senderPubkey = new Address(transaction.getSender().bech32()).pubkey();