Skip to content

Commit

Permalink
fix: force conversion ss58format to string (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoeOm authored Mar 13, 2024
1 parent 4d2b525 commit 4e11c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/api-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const ApiProvider = ({ children }: React.PropsWithChildren<unknown>) => {
const chainState = await api.rpc.system.properties();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { tokenDecimals, tokenSymbol, ss58Format } = chainState?.toHuman() as any;
let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix;
let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix.toString();
finalSs58Format = finalSs58Format.replaceAll(',', '');
const chainInfo = tokenDecimals.reduce(
(acc: Chain, decimal: string, index: number) => {
Expand Down

0 comments on commit 4e11c15

Please sign in to comment.