Skip to content

Commit 4e11c15

Browse files
authored
fix: force conversion ss58format to string (#226)
1 parent 4d2b525 commit 4e11c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/api-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const ApiProvider = ({ children }: React.PropsWithChildren<unknown>) => {
249249
const chainState = await api.rpc.system.properties();
250250
// eslint-disable-next-line @typescript-eslint/no-explicit-any
251251
const { tokenDecimals, tokenSymbol, ss58Format } = chainState?.toHuman() as any;
252-
let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix;
252+
let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix.toString();
253253
finalSs58Format = finalSs58Format.replaceAll(',', '');
254254
const chainInfo = tokenDecimals.reduce(
255255
(acc: Chain, decimal: string, index: number) => {

0 commit comments

Comments
 (0)