Change registry.chainToekn to registry.chainTokens (#3096)
This commit is contained in:
@@ -181,7 +181,7 @@ export abstract class AbstractInt extends BN implements Codec {
|
||||
? 'everything'
|
||||
// FIXME In the case of multiples we need some way of detecting which instance this belongs
|
||||
// to. as it stands we will always format (incorrectly) against the first token defined
|
||||
: formatBalance(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainToken[0] });
|
||||
: formatBalance(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainTokens[0] });
|
||||
}
|
||||
|
||||
const [, divisor] = FORMATTERS.find(([type]) => type === rawType) || [];
|
||||
|
||||
@@ -178,7 +178,7 @@ export class TypeRegistry implements Registry {
|
||||
: undefined;
|
||||
}
|
||||
|
||||
public get chainToken (): string[] {
|
||||
public get chainTokens (): string[] {
|
||||
if (this.#chainProperties?.tokenSymbol.isSome) {
|
||||
const allTokens = this.#chainProperties.tokenSymbol.unwrap();
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ export interface RegisteredTypes {
|
||||
export interface Registry {
|
||||
readonly chainDecimals: number[];
|
||||
readonly chainSS58: number | undefined;
|
||||
readonly chainToken: string[];
|
||||
readonly chainTokens: string[];
|
||||
readonly knownTypes: RegisteredTypes;
|
||||
readonly signedExtensions: string[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user