@greymass/eosio
Advanced tools
Comparing version 0.6.5-rc1 to 0.6.5
{ | ||
"name": "@greymass/eosio", | ||
"description": "Library for working with EOSIO blockchains", | ||
"version": "0.6.5-rc1", | ||
"version": "0.6.5", | ||
"homepage": "https://github.com/greymass/eosio-core", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -119,3 +119,3 @@ import {ABISerializableObject} from '../serializer/serializable' | ||
static abiName = 'symbol' | ||
static symbolNamePattern = /^[A-Z]{1,7}$/ | ||
static symbolNamePattern = /^[A-Z]{0,7}$/ | ||
static maxPrecision = 18 | ||
@@ -157,13 +157,3 @@ | ||
} | ||
/** | ||
* Within the `voters` table of the `eosio` contract, the `reserved3` value | ||
* is a required field with a type of `asset`, but has a value of UInt64.from(0) | ||
* | ||
* This doesn't match our regex, so we need to allow it to pass to deserialize | ||
* the data properly. The string renders out to "0 " according to nodeos APIs. | ||
*/ | ||
if ( | ||
!value.equals(UInt64.from(0)) && | ||
!Symbol.symbolNamePattern.test(toSymbolName(value)) | ||
) { | ||
if (!Symbol.symbolNamePattern.test(toSymbolName(value))) { | ||
throw new Error('Invalid asset symbol, name must be uppercase A-Z') | ||
@@ -170,0 +160,0 @@ } |
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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
955316
17520