Skip to content

Commit

Permalink
feat: Support telegram mini app
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Aug 27, 2024
1 parent 29661f4 commit c673866
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-hornets-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Support telegram mini app
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isMobile, isTMA } from '@/core/base/utils/mobile';
import { UseWalletRenderProps } from '@/core/hooks/useWalletRender';
import { isMobile, isTMA } from '@/core/index';
import { useConnectModal } from '@/core/modals/ConnectModal/context';
import { ViewRoutes } from '@/core/modals/ConnectModal/RouteProvider';
import { useRouter } from '@/core/modals/ConnectModal/RouteProvider/context';
Expand Down
2 changes: 1 addition & 1 deletion packages/walletkit/src/evm/utils/evmCommonErrorHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isIOS, isMobile } from '@/core/index';
import { isIOS, isMobile } from '@/core/base/utils/mobile';
import { binanceWeb3Wallet, trustWallet } from '../wallets';

export function evmCommonErrorHandler(props: { log: any; handler: any; error: any }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/walletkit/src/evm/wallets/metaMask/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { metaMaskConfig } from '@/core/configs/metaMask';
import { hasEvmInjectedProvider } from '../utils';
import { injected } from '../injected';
import { InjectedEvmWalletOptions, EvmWallet } from '../types';
import { isMobile, isTMA } from '@/core/index';
import { isMobile, isTMA } from '@/core/base/utils/mobile';

export function metaMask(props: InjectedEvmWalletOptions = {}): EvmWallet {
const { connectorOptions, ...restProps } = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/walletkit/src/evm/wallets/trustWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { trustWalletConfig } from '@/core/configs/trustWallet';
import { injected } from '../injected';
import { EvmWallet, InjectedEvmWalletOptions } from '../types';
import { getEvmInjectedProvider } from '../utils';
import { isMobile, isTMA } from '@/core/index';
import { isMobile, isTMA } from '@/core/base/utils/mobile';

export function trustWallet(props: InjectedEvmWalletOptions = {}): EvmWallet {
const { connectorOptions, ...restProps } = props;
Expand Down

0 comments on commit c673866

Please sign in to comment.