We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d2b525 commit 4e11c15Copy full SHA for 4e11c15
src/providers/api-provider.tsx
@@ -249,7 +249,7 @@ export const ApiProvider = ({ children }: React.PropsWithChildren<unknown>) => {
249
const chainState = await api.rpc.system.properties();
250
// eslint-disable-next-line @typescript-eslint/no-explicit-any
251
const { tokenDecimals, tokenSymbol, ss58Format } = chainState?.toHuman() as any;
252
- let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix;
+ let finalSs58Format = ss58Format || api.consts.system?.ss58Prefix.toString();
253
finalSs58Format = finalSs58Format.replaceAll(',', '');
254
const chainInfo = tokenDecimals.reduce(
255
(acc: Chain, decimal: string, index: number) => {
0 commit comments