@collabland/chain
Advanced tools
Comparing version 0.13.2 to 0.14.0
@@ -47,3 +47,3 @@ import { AssetName, AssetTypeParams } from './caip'; | ||
getNFTBalance(account: AccountIdResource, asset: AssetName, options?: NFTAssetOptions): Promise<TokenAsset<TID, M, AMT>[]>; | ||
protected parseTokenIds(ids: string): string[]; | ||
protected parseTokenIds(ids: string | number): string[]; | ||
getBalances(account: AccountIdResource, requests: AssetRequest<TID>[], options?: NFTAssetOptions): Promise<AssetResponse<AMT, TID, M>[]>; | ||
@@ -50,0 +50,0 @@ getAssetTypes(account: AccountIdResource): Promise<AssetTypeParams[]>; |
@@ -67,3 +67,3 @@ "use strict"; | ||
parseTokenIds(ids) { | ||
return asset_name_id_1.AssetNameId.parseTokenIds(ids); | ||
return asset_name_id_1.AssetNameId.parseTokenIds(String(ids)); | ||
} | ||
@@ -70,0 +70,0 @@ async getBalances(account, requests, options) { |
@@ -133,3 +133,4 @@ "use strict"; | ||
if (resolved == null) { | ||
throw new Error(`Invalid chain resource: ${resource}`); | ||
debug('Invalid chain resource: %O', resource); | ||
throw new Error(`Invalid chain resource: ${(0, common_1.stringify)(resource)}`); | ||
} | ||
@@ -136,0 +137,0 @@ return resolved; |
{ | ||
"name": "@collabland/chain", | ||
"version": "0.13.2", | ||
"version": "0.14.0", | ||
"description": "CollabLand Ethereum Integration", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@collabland/common": "^0.23.0", | ||
"@collabland/common": "^0.23.1", | ||
"tslib": "^2.0.0" | ||
@@ -47,3 +47,3 @@ }, | ||
"author": "Abridged, Inc.", | ||
"gitHead": "e91992898ed6da83476c465e2df8783bc1b3c39a" | ||
"gitHead": "154108d67dcb9f75a4f884055a075e3c3a91933b" | ||
} |
@@ -129,4 +129,4 @@ // Copyright Abridged, Inc. 2021. All Rights Reserved. | ||
protected parseTokenIds(ids: string) { | ||
return AssetNameId.parseTokenIds(ids); | ||
protected parseTokenIds(ids: string | number) { | ||
return AssetNameId.parseTokenIds(String(ids)); | ||
} | ||
@@ -133,0 +133,0 @@ |
@@ -6,3 +6,3 @@ // Copyright Abridged, Inc. 2021. All Rights Reserved. | ||
import {debugFactory} from '@collabland/common'; | ||
import {debugFactory, stringify} from '@collabland/common'; | ||
import { | ||
@@ -211,3 +211,4 @@ AccountId, | ||
if (resolved == null) { | ||
throw new Error(`Invalid chain resource: ${resource}`); | ||
debug('Invalid chain resource: %O', resource); | ||
throw new Error(`Invalid chain resource: ${stringify(resource)}`); | ||
} | ||
@@ -214,0 +215,0 @@ return resolved as unknown as ChainResource<T>; |
Sorry, the diff of this file is not supported yet
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
125983
3313
Updated@collabland/common@^0.23.1