@vostokplatform/signature-generator
Advanced tools
Comparing version 2.0.0-RC15 to 2.0.0-RC16
@@ -53,3 +53,3 @@ import { BigNumber } from '@waves/data-entities'; | ||
constructor(required: boolean); | ||
getValidationError(val: number): "You should pass a number to Short constructor" | "Short value must fit between -2147483648 and 2147483647"; | ||
getValidationError(val: number): "You should pass a number to Short constructor" | "Short value must fit between 0 and 65535"; | ||
getBytes(value: number): Promise<Uint8Array>; | ||
@@ -59,3 +59,3 @@ } | ||
constructor(required: boolean); | ||
getValidationError(value: number): "You should pass a number to Integer constructor" | "Short value must fit between 0 and 65535"; | ||
getValidationError(value: number): "You should pass a number to Integer constructor" | "Integer value must fit between -2147483648 and 2147483647"; | ||
getBytes(value: number): Promise<Uint8Array>; | ||
@@ -62,0 +62,0 @@ } |
@@ -256,4 +256,4 @@ "use strict"; | ||
return 'You should pass a number to Short constructor'; | ||
if (val < -2147483648 || val > 2147483647) | ||
return 'Short value must fit between -2147483648 and 2147483647'; | ||
if (val < 0 || val > 65535) | ||
return 'Short value must fit between 0 and 65535'; | ||
return null; | ||
@@ -275,4 +275,4 @@ }; | ||
return 'You should pass a number to Integer constructor'; | ||
if (value < 0 || value > 65535) | ||
return 'Short value must fit between 0 and 65535'; | ||
if (value < -2147483648 || value > 2147483647) | ||
return 'Integer value must fit between -2147483648 and 2147483647'; | ||
return null; | ||
@@ -279,0 +279,0 @@ }; |
{ | ||
"name": "@vostokplatform/signature-generator", | ||
"version": "2.0.0-RC15", | ||
"version": "2.0.0-RC16", | ||
"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
5949573