This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export class Kernel extends UserOperationBuilder {
91
91
instance . factory . address ,
92
92
instance . factory . interface . encodeFunctionData ( "createAccount" , [
93
93
await instance . signer . getAddress ( ) ,
94
- ethers . BigNumber . from ( 0 ) ,
94
+ ethers . BigNumber . from ( opts ?. salt ?? 0 ) ,
95
95
] ) ,
96
96
] ) ;
97
97
await instance . entryPoint . callStatic . getSenderAddress ( instance . initCode ) ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export class SimpleAccount extends UserOperationBuilder {
67
67
instance . factory . address ,
68
68
instance . factory . interface . encodeFunctionData ( "createAccount" , [
69
69
await instance . signer . getAddress ( ) ,
70
- ethers . BigNumber . from ( 0 ) ,
70
+ ethers . BigNumber . from ( opts ?. salt ?? 0 ) ,
71
71
] ) ,
72
72
] ) ;
73
73
await instance . entryPoint . callStatic . getSenderAddress ( instance . initCode ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ export interface ISendUserOperationResponse {
106
106
export interface IPresetBuilderOpts {
107
107
entryPoint ?: string ;
108
108
factory ?: string ;
109
+ salt ?: BigNumberish ;
109
110
paymasterMiddleware ?: UserOperationMiddlewareFn ;
110
111
overrideBundlerRpc ?: string ;
111
112
}
You can’t perform that action at this time.
0 commit comments