Skip to content

Commit

Permalink
Add Basename resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
yuga-cb committed Oct 4, 2024
1 parent 9c29b83 commit 6497ac5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bun run dev
<br />

## TODOs
- Allow ENS and Basename recipients
- Allow ENS recipients
- Implement system audio recording

## Resources
Expand Down
5 changes: 3 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import WalletWrapper from 'src/components/WalletWrapper';
import { ONCHAINKIT_LINK } from 'src/links';
import LoginButton from '../components/LoginButton';
import SignupButton from '../components/SignupButton';
import { BASE_RESOLVER_ADDRESS } from 'src/constants';

export default function Page() {
const { address } = useAccount();
Expand All @@ -25,7 +26,7 @@ export default function Page() {
const { data: resolvedAddress, isError, isLoading, error: resolutionError } = useEnsAddress({
name: ensName,
// Basename resolver
universalResolverAddress: '0xC6d566A56A1aFf6508b41f6c90ff131615583BCD'
universalResolverAddress: BASE_RESOLVER_ADDRESS
});

const startRecording = async () => {
Expand Down Expand Up @@ -182,7 +183,7 @@ export default function Page() {
if (resolvedAddress) {
setReceiverAddress(resolvedAddress);
}
}, [resolvedAddress, isError, isLoading, ensName, resolutionError]);
}, [resolvedAddress]);

return (
<div className="flex h-full w-96 max-w-full flex-col px-1 md:w-[1008px]">
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const mintABI = [

export const BASE_MAINNET_CHAIN_ID = 8453;
export const USDC_CONTRACT_ADDRESS = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913';
export const BASE_RESOLVER_ADDRESS = '0xC6d566A56A1aFf6508b41f6c90ff131615583BCD';
export const approveABI = [
{
inputs: [
Expand Down

0 comments on commit 6497ac5

Please sign in to comment.