Skip to content

Commit

Permalink
Merge pull request #8 from darwinia-network/network_and_accounts_bug_fix
Browse files Browse the repository at this point in the history
minor bug fix
  • Loading branch information
wuminzhe authored Feb 24, 2023
2 parents c45869e + 557a223 commit 2f0e602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/app-config/src/chains/pangoro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const pangoro: ChainConfig = {
symbol: "ORING",
decimals: 9,
},
chainId: 43,
chainId: 45,
substrate: {
graphQlURL: "https://api.subquery.network/sq/isunaslabs/pangolin2",
graphQlURL: "https://api.subquery.network/sq/isunaslabs/pangoro-2",
wssURL: "ws://g1.dev.darwinia.network:20000",
httpsURL: "https://pangolin-rpc.darwinia.network",
},
Expand Down
3 changes: 2 additions & 1 deletion packages/app-providers/src/walletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ export const WalletProvider = ({ children }: PropsWithChildren) => {
/* this is the signer that needs to be used when we sign a transaction */
setSigner(enabledExtensions[0].signer);
/* this will return a list of all the accounts that are in the Polkadot extension */
const accounts = await web3Accounts();
const unfilteredAccounts = await web3Accounts();
const accounts = unfilteredAccounts.filter((account) => !account.address.startsWith("0x"));
accounts.forEach((account) => {
keyring.saveAddress(account.address, account.meta);
});
Expand Down

0 comments on commit 2f0e602

Please sign in to comment.