Skip to content

Commit

Permalink
fix: assets loading for wrong network
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Jan 10, 2024
1 parent 3ced8a5 commit 9e65507
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/extension/src/providers/ethereum/networks/aa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const artheraOptions: EvmNetworkOptions = {
isTestNetwork: false,
currencyName: "AA",
currencyNameLong: "Arthera",
node: "wss://ws.arthera.net",
node: "https://rpc.arthera.net",
icon: require("./icons/aa.svg"),
activityHandler: wrapActivityHandler(EtherscanActivity),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/providers/ethereum/networks/aat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler";

const artheraTestOptions: EvmNetworkOptions = {
name: NetworkNames.ArtheraTest,
name_long: "Arthera",
name_long: "Arthera Test",
homePage: "https://arthera.net/",
blockExplorerTX: "https://explorer-test.arthera.net/tx/[[txHash]]",
blockExplorerAddr: "https://explorer-test.arthera.net/address/[[address]]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ const selected: string = route.params.id as string;
const updateAssets = () => {
isLoading.value = true;
assets.value = [];
const currentNetwork = selectedNetworkName.value;
props.network
.getAllTokenInfo(props.accountInfo.selectedAccount?.address || "")
.then((_assets) => {
if (selectedNetworkName.value !== currentNetwork) return;
assets.value = _assets;
isLoading.value = false;
});
Expand Down

1 comment on commit 9e65507

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.