File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ export function App() {
133133 const signAndSendCurrent = async ( ) => {
134134 if ( ! walletClient || ! selected || ! pending ) return ;
135135
136+ if ( ! pending ?. request ) return ;
137+
136138 try {
137139 const hash = ( await selected . provider . request ( {
138140 method : "eth_sendTransaction" ,
Original file line number Diff line number Diff line change 1+ import type { TransactionRequest } from "viem" ;
2+
13export type EIP6963ProviderInfo = {
24 uuid : string ;
35 name : string ;
@@ -40,4 +42,4 @@ declare global {
4042
4143export type ApiOk < T > = { status : "ok" ; data : T } ;
4244export type ApiErr = { status : string ; message ?: string } ;
43- export type PendingAny = Record < string , unknown > & { id : string } ;
45+ export type PendingAny = Record < string , unknown > & { id : string ; request : TransactionRequest } ;
You can’t perform that action at this time.
0 commit comments