Skip to content

Commit

Permalink
Fix logic for non-web3 user and add the app logo url of coinbase wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
jeong-ah-choi committed Jan 4, 2023
1 parent 3e275bb commit d02fce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features/Contract/hooks/useCoinbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import CoinbaseWalletSDK from'@coinbase/wallet-sdk'
export default function useCoinbase() {
const APP_NAME = 'KUP'

const APP_LOGO_URL = ''
const APP_LOGO_URL = 'https://coinbase-kup-web.vercel.app/landing/logo-cup.svg'

const DEFAULT_ETH_JSONRPC_URL = 'https://mainnet.infura.io/v3/fcb656a7b4d14c9f9b0803a5d7475877'

Expand All @@ -33,6 +33,8 @@ export default function useCoinbase() {
if (window?.ethereum) {
const res: any = await ethereum.request({ method: 'eth_requestAccounts' });
setSelectedAddress(res[0]);
} else {
ethereum.enable();
}
}
return {
Expand Down

1 comment on commit d02fce0

@vercel
Copy link

@vercel vercel bot commented on d02fce0 Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

coinbase-kup-web – ./

coinbase-kup-web-git-main-catze.vercel.app
coinbase-kup-web.vercel.app
coinbase-kup-web-catze.vercel.app

Please sign in to comment.