Skip to content

Commit

Permalink
fix: era ethereum balances
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed May 24, 2023
1 parent 37889ba commit 8f2a91d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/transaction/zksync/era/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:icon="ArrowUpRightIcon"
as="a"
target="_blank"
href="https://www.layerswap.io/?networkName=ZKSYNCERA_MAINNET"
href="https://www.layerswap.io/?sourceExchangeName=ZKSYNCERA_MAINNET"
/>
</CommonCardWithLineButtons>

Expand All @@ -41,7 +41,7 @@
:icon="ArrowUpRightIcon"
as="a"
target="_blank"
href="https://www.layerswap.io/?networkName=ZKSYNCERA_MAINNET"
href="https://www.layerswap.io/?sourceExchangeName=ZKSYNCERA_MAINNET"
/>
<DestinationItem
v-bind="destinations.orbiter"
Expand Down
3 changes: 2 additions & 1 deletion store/zksync/era/ethereumBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const useEraEthereumBalanceStore = defineStore("eraEthereumBalances", ()
}
return Object.values(tokens.value).map((token) => ({
...token,
amount: ethereumBalance.value!.find((balance) => balance.contractAddress === token.address)?.tokenBalance ?? "0",
amount:
ethereumBalance.value!.find((balance) => balance.contractAddress === token.l1Address)?.tokenBalance ?? "0",
}));
});
watch(
Expand Down

0 comments on commit 8f2a91d

Please sign in to comment.