Skip to content

Commit 67950b7

Browse files
fix: retry count for eth_sendUserOperation
1 parent 27b01dc commit 67950b7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/sdk/base/HttpRpcClient.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,15 @@ export class HttpRpcClient {
9393
const jsonRequestData: [BaseAccountUserOperationStruct, string] = [hexifiedUserOp, this.entryPointAddress];
9494
await this.printUserOperation('eth_sendUserOperation', jsonRequestData);
9595
//return await this.userOpJsonRpcProvider.send('eth_sendUserOperation', [hexifiedUserOp, this.entryPointAddress]);
96-
return await this.publicClient.request({
97-
method: 'eth_sendUserOperation',
98-
params: [hexifiedUserOp, this.entryPointAddress]
99-
});
96+
return await this.publicClient.request(
97+
{
98+
method: 'eth_sendUserOperation',
99+
params: [hexifiedUserOp, this.entryPointAddress]
100+
},
101+
{
102+
retryCount: 0
103+
}
104+
);
100105
} catch (err) {
101106
console.log(`error inside sendUserOpToBundler: ${JSON.stringify(err)}`);
102107
this.handleRPCError(err);

0 commit comments

Comments
 (0)