@vostokplatform/signature-generator
Advanced tools
Comparing version 2.0.0-RC13 to 2.0.0-RC14
@@ -82,3 +82,3 @@ import { BigNumber } from '@waves/data-entities'; | ||
constructor(required: boolean); | ||
getBytes(value: string): Promise<any>; | ||
getBytes(value: string): Promise<Uint8Array>; | ||
} | ||
@@ -85,0 +85,0 @@ export declare class MandatoryAssetId extends ByteProcessor<string> { |
@@ -370,10 +370,3 @@ "use strict"; | ||
value = blockchainifyAssetId(value); | ||
var bytes; | ||
if (this.required) { | ||
bytes = base58_1.default.decode(value); | ||
} | ||
else { | ||
bytes = value ? concat_1.concatUint8Arrays(Uint8Array.from([1]), base58_1.default.decode(value)) : Uint8Array.from([0]); | ||
} | ||
return Promise.resolve(bytes); | ||
return Promise.resolve(base58_1.default.decode(value)); | ||
}; | ||
@@ -380,0 +373,0 @@ return AssetId; |
{ | ||
"name": "@vostokplatform/signature-generator", | ||
"version": "2.0.0-RC13", | ||
"version": "2.0.0-RC14", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
5949694
101513