Skip to content

Commit

Permalink
update cicd ext
Browse files Browse the repository at this point in the history
  • Loading branch information
marxeille committed Jan 22, 2025
1 parent c0a6072 commit f7cf723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ jobs:
run: yarn --silent

- name: Build Libs
run: yarn build:libs
run: yarn build:codepush

- name: Build @owallet/hooks
working-directory: packages/hooks
run: yarn build

- name: Build extension
working-directory: apps/extension
Expand Down
16 changes: 4 additions & 12 deletions apps/extension/src/pages/main/components/address-chip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import { Bech32Address } from "@owallet/cosmos";
import Lottie from "lottie-web";
import { Gutter } from "../../../../components/gutter";
import { useTheme } from "styled-components";
import { ChainIdEVM } from "@owallet/types";
import {formatAddress} from "@owallet/common";
import { formatAddress } from "@owallet/common";

export const AddressChip: FunctionComponent<{
chainId: string;
address?: string;
inModal?: boolean;
}> = observer(({ chainId, address, inModal }) => {
const { allAccountStore, chainStore, tronAccountStore } = useStore();
const { allAccountStore, chainStore } = useStore();

const [copyAddress, setCopyAddress] = useState("");

Expand All @@ -40,15 +39,8 @@ export const AddressChip: FunctionComponent<{
if (address) {
setCopyAddress(address);
} else {
// if (chainId === ChainIdEVM.TRON) {
// const accountTron = tronAccountStore.getAccount(
// modularChainInfo.chainId
// );
// setCopyAddress(accountTron.base58Address);
// } else {
const finalAddress = account.addressDisplay;
setCopyAddress(finalAddress);
// }
const finalAddress = account.addressDisplay;
setCopyAddress(finalAddress);
}
}, [address, account, isEVMOnlyChain, chainId]);

Expand Down

0 comments on commit f7cf723

Please sign in to comment.