Skip to content

Commit

Permalink
remove ens domain name support
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyindeniz committed Oct 18, 2023
1 parent f46e223 commit 027c047
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ React dApp Template (Vite) is an easy-to-use foundation for efficiently building
## Features

- Authentication with Metamask Wallet
- Wallet Domain Name Support ([ENS](https://ens.domains/) and [AVVY Domains](https://avvy.domains/))
- Wallet Domain Name Support ([AVVY Domains](https://avvy.domains/))
- Internationalization
- Dark Theme
- Page load optimizations
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vitedapp",
"private": true,
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/features/ui/components/Layout/Copyright/Copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import reactDappTemplateLogo from '../../../assets/images/react-dapp-template-lo
export const Copyright: React.FC = React.memo(() => {
return (
<Box>
<Tooltip label="Powered by React dApp Template (Vite) v0.4.0">
<Tooltip label="Powered by React dApp Template (Vite) v0.4.1">
<Button
as={Link}
href="https://github.com/huseyindeniz/vite-react-dapp-template"
Expand Down
2 changes: 1 addition & 1 deletion src/features/wallet/chains/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const EthereumMainnetChain: Network = {
multicallAddress: '0xeefba1e63905ef1d7acba5a8513c70307c1ce441',
isTestChain: false,
isLocalChain: false,
isDomainNameSupported: true,
isDomainNameSupported: false,
};
5 changes: 1 addition & 4 deletions src/services/ethersV6/wallet/WalletAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import log from 'loglevel';
import { eventChannel, EventChannel } from 'redux-saga';

import { AvalancheChain } from '@/features/wallet/chains/avalanche';
import { EthereumMainnetChain } from '@/features/wallet/chains/ethereum';
import {
DISABLE_WALLET_SIGN,
SUPPORTED_NETWORKS,
Expand Down Expand Up @@ -222,9 +221,7 @@ export class EthersV6WalletAPI implements IWalletEthersV6ProviderApi {
public getDomainName = async () => {
log.debug(this._network?.chainId);
if (this._provider && this._network && this._signerAddress) {
if (Number(this._network.chainId) === EthereumMainnetChain.chainId) {
return await this._provider.lookupAddress(this._signerAddress);
} else if (Number(this._network.chainId) === AvalancheChain.chainId) {
if (Number(this._network.chainId) === AvalancheChain.chainId) {
const avvyApi = AvvyAPI.getInstance(this._provider);
return avvyApi.addressToDomain(this._signerAddress);
}
Expand Down

0 comments on commit 027c047

Please sign in to comment.