diff --git a/packages/thirdweb/src/adapters/viem.ts b/packages/thirdweb/src/adapters/viem.ts index 58382bb8032..f2d7285a279 100644 --- a/packages/thirdweb/src/adapters/viem.ts +++ b/packages/thirdweb/src/adapters/viem.ts @@ -394,7 +394,7 @@ function fromViemWalletClient(options: { ); } return { - address: viemAccount.address, + address: viemAccount.address as `0x${string}`, signMessage: async (msg) => { return options.walletClient.signMessage({ account: viemAccount, diff --git a/packages/thirdweb/src/react/core/hooks/others/useWalletBalance.ts b/packages/thirdweb/src/react/core/hooks/others/useWalletBalance.ts index 90446c358b6..4ec89e7bbd7 100644 --- a/packages/thirdweb/src/react/core/hooks/others/useWalletBalance.ts +++ b/packages/thirdweb/src/react/core/hooks/others/useWalletBalance.ts @@ -13,7 +13,7 @@ import { type UseWalletBalanceOptions = Prettify< Omit & { - address: string | undefined; + address: `0x${string}` | undefined; chain: Chain | undefined; } >; diff --git a/packages/thirdweb/src/react/native/ui/connect/TokenListScreen.tsx b/packages/thirdweb/src/react/native/ui/connect/TokenListScreen.tsx index ea0ebbdeede..68c006a9570 100644 --- a/packages/thirdweb/src/react/native/ui/connect/TokenListScreen.tsx +++ b/packages/thirdweb/src/react/native/ui/connect/TokenListScreen.tsx @@ -64,7 +64,7 @@ export const TokenRow = (props: { theme: Theme; client: ThirdwebClient; chain?: Chain; - address?: string; + address?: `0x${string}`; onTokenSelected?: (token?: TokenInfo) => void; }) => { const { token, theme, address, chain, client, onTokenSelected } = props; diff --git a/packages/thirdweb/src/wallets/engine/index.ts b/packages/thirdweb/src/wallets/engine/index.ts index 1d982d22023..4939914dd69 100644 --- a/packages/thirdweb/src/wallets/engine/index.ts +++ b/packages/thirdweb/src/wallets/engine/index.ts @@ -19,7 +19,7 @@ export type EngineAccountOptions = { /** * The backend wallet to use for sending transactions inside engine. */ - walletAddress: string; + walletAddress: `0x${string}`; overrides?: { /** * The address of the smart account to act on behalf of. Requires your backend wallet to be a valid signer on that smart account. diff --git a/packages/thirdweb/src/wallets/interfaces/wallet.ts b/packages/thirdweb/src/wallets/interfaces/wallet.ts index a43b2841d48..f0bd060e8c5 100644 --- a/packages/thirdweb/src/wallets/interfaces/wallet.ts +++ b/packages/thirdweb/src/wallets/interfaces/wallet.ts @@ -164,7 +164,7 @@ export type Account = { /** * address of the account */ - address: Address; + address: `0x${string}`; /** * Send the given transaction to the blockchain * @example