@talismn/keyring 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,7 @@ export declare const isAccountLedgerPolkadotGeneric: (account: Account | null |
|
|
|
30
30
|
export declare const isAccountLedgerPolkadotLegacy: (account: Account | null | undefined) => account is AccountLedgerPolkadot & {
|
|
31
31
|
genesisHash: `0x${string}`;
|
|
32
32
|
};
|
|
33
|
-
export declare const getAccountGenesisHash: (account: Account | null | undefined) => `0x${string}` |
|
|
33
|
+
export declare const getAccountGenesisHash: (account: Account | null | undefined) => `0x${string}` | undefined;
|
|
34
34
|
export declare const getAccountSignetUrl: (account: Account | null | undefined) => string | undefined;
|
|
35
35
|
export declare const getAccountPlatform: (account: Account | null | undefined) => import("@talismn/crypto").Platform | undefined;
|
|
36
36
|
export {};
|
|
@@ -34,7 +34,7 @@ const isAccountLedgerPolkadotLegacy = account => {
|
|
|
34
34
|
};
|
|
35
35
|
const getAccountGenesisHash = account => {
|
|
36
36
|
if (!account) return undefined;
|
|
37
|
-
return "genesisHash" in account ? account.genesisHash : undefined;
|
|
37
|
+
return "genesisHash" in account ? account.genesisHash || undefined : undefined;
|
|
38
38
|
};
|
|
39
39
|
const getAccountSignetUrl = account => {
|
|
40
40
|
return isAccountOfType(account, "signet") ? account.url : undefined;
|
|
@@ -34,7 +34,7 @@ const isAccountLedgerPolkadotLegacy = account => {
|
|
|
34
34
|
};
|
|
35
35
|
const getAccountGenesisHash = account => {
|
|
36
36
|
if (!account) return undefined;
|
|
37
|
-
return "genesisHash" in account ? account.genesisHash : undefined;
|
|
37
|
+
return "genesisHash" in account ? account.genesisHash || undefined : undefined;
|
|
38
38
|
};
|
|
39
39
|
const getAccountSignetUrl = account => {
|
|
40
40
|
return isAccountOfType(account, "signet") ? account.url : undefined;
|
|
@@ -32,7 +32,7 @@ const isAccountLedgerPolkadotLegacy = account => {
|
|
|
32
32
|
};
|
|
33
33
|
const getAccountGenesisHash = account => {
|
|
34
34
|
if (!account) return undefined;
|
|
35
|
-
return "genesisHash" in account ? account.genesisHash : undefined;
|
|
35
|
+
return "genesisHash" in account ? account.genesisHash || undefined : undefined;
|
|
36
36
|
};
|
|
37
37
|
const getAccountSignetUrl = account => {
|
|
38
38
|
return isAccountOfType(account, "signet") ? account.url : undefined;
|