@@ -48,6 +48,7 @@ describe('Recovery', () => {
4848
4949 // Transfer 1 wei to the wallet
5050 const provider = Provider . from ( RpcTransport . fromHttp ( LOCAL_RPC_URL ) )
51+ const [ from ] = ( await provider . request ( { method : 'eth_accounts' , params : [ ] as any } ) ) as `0x${string } `[ ]
5152 await provider . request ( {
5253 method : 'anvil_setBalance' ,
5354 params : [ wallet ! , '0x3635c9adc5dea0000' ] , // 0.1 ETH
@@ -107,6 +108,7 @@ describe('Recovery', () => {
107108 method : 'eth_sendTransaction' ,
108109 params : [
109110 {
111+ from,
110112 to,
111113 data,
112114 } ,
@@ -279,6 +281,7 @@ describe('Recovery', () => {
279281
280282 // Transfer 1 wei to the wallet
281283 const provider = Provider . from ( RpcTransport . fromHttp ( LOCAL_RPC_URL ) )
284+ const [ from ] = ( await provider . request ( { method : 'eth_accounts' , params : [ ] as any } ) ) as `0x${string } `[ ]
282285 await provider . request ( {
283286 method : 'anvil_setBalance' ,
284287 params : [ wallet ! , '0x1' ] ,
@@ -320,7 +323,7 @@ describe('Recovery', () => {
320323 const { to, data } = await manager . recovery . completePayload ( requestId2 )
321324 await provider . request ( {
322325 method : 'eth_sendTransaction' ,
323- params : [ { to, data } ] ,
326+ params : [ { from , to, data } ] ,
324327 } )
325328
326329 // Wait for payload to become valid
@@ -428,6 +431,7 @@ describe('Recovery', () => {
428431
429432 // Transfer some wei to the wallet
430433 const provider = Provider . from ( RpcTransport . fromHttp ( LOCAL_RPC_URL ) )
434+ const [ from ] = ( await provider . request ( { method : 'eth_accounts' , params : [ ] as any } ) ) as `0x${string } `[ ]
431435 await provider . request ( {
432436 method : 'anvil_setBalance' ,
433437 params : [ wallet ! , '0x10' ] ,
@@ -466,7 +470,7 @@ describe('Recovery', () => {
466470 // Send transactions sequentially to avoid nonce conflicts
467471 await provider . request ( {
468472 method : 'eth_sendTransaction' ,
469- params : [ { to, data } ] ,
473+ params : [ { from , to, data } ] ,
470474 } )
471475
472476 // Small delay to ensure transaction ordering
0 commit comments