22import { engineCloudProxy } from "@/actions/proxies" ;
33import type { Project } from "@/api/projects" ;
44import { SingleNetworkSelector } from "@/components/blocks/NetworkSelectors" ;
5- import { WalletAvatar } from "@/components/blocks/wallet-address" ;
65import { Button } from "@/components/ui/button" ;
76import { Input } from "@/components/ui/input" ;
87import {
@@ -26,9 +25,9 @@ import {
2625 optimismSepolia ,
2726 sepolia ,
2827} from "thirdweb/chains" ;
29- import { shortenAddress } from "thirdweb/utils" ;
3028import * as z from "zod" ;
3129import type { Wallet } from "../server-wallets/wallet-table/types" ;
30+ import { SmartAccountCell } from "../server-wallets/wallet-table/wallet-table-ui.client" ;
3231
3332const formSchema = z . object ( {
3433 accessToken : z . string ( ) . min ( 1 , "Access token is required" ) ,
@@ -171,15 +170,7 @@ export function SendTestTransaction(props: {
171170 < SelectTrigger className = "w-full" >
172171 < SelectValue >
173172 < div className = "flex items-center gap-2" >
174- < WalletAvatar
175- address = { selectedWallet . address }
176- profiles = { [ ] }
177- thirdwebClient = { thirdwebClient }
178- iconClassName = "h-5 w-5"
179- />
180- < span className = "font-mono text-sm" >
181- { shortenAddress ( selectedWallet . address ) }
182- </ span >
173+ < SmartAccountCell wallet = { selectedWallet } />
183174 < span className = "text-muted-foreground text-sm" >
184175 { selectedWallet . metadata . label }
185176 </ span >
@@ -190,15 +181,7 @@ export function SendTestTransaction(props: {
190181 { props . wallets . map ( ( wallet , index ) => (
191182 < SelectItem key = { wallet . address } value = { index . toString ( ) } >
192183 < div className = "flex items-center gap-2" >
193- < WalletAvatar
194- address = { wallet . address }
195- profiles = { [ ] }
196- thirdwebClient = { thirdwebClient }
197- iconClassName = "h-5 w-5"
198- />
199- < span className = "font-mono text-sm" >
200- { shortenAddress ( wallet . address ) }
201- </ span >
184+ < SmartAccountCell wallet = { wallet } />
202185 < span className = "text-muted-foreground text-sm" >
203186 { selectedWallet . metadata . label }
204187 </ span >
0 commit comments