viem 2.21.38 → 2.21.39

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # viem
2
2
 
3
+ ## 2.21.39
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4de3e658d2505be4d28c4064d400409664c23096`](https://github.com/wevm/viem/commit/4de3e658d2505be4d28c4064d400409664c23096) Thanks [@SahilVasava](https://github.com/SahilVasava)! - **Account Abstraction:** Added optional param `UserOperationRequest` to `getStubSignature`
8
+
3
9
  ## 2.21.38
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -108,6 +108,12 @@ Check out the following places for more viem-related content:
108
108
  <img alt="paradigm logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg" width="auto" height="70">
109
109
  </picture>
110
110
  </a>
111
+ <a href="https://ithaca.xyz">
112
+ <picture>
113
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-dark.svg">
114
+ <img alt="ithaca logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-light.svg" width="auto" height="70">
115
+ </picture>
116
+ </a>
111
117
 
112
118
  <br>
113
119
 
@@ -59,7 +59,7 @@ async function prepareUserOperation(client, parameters_) {
59
59
  paymaster: paymasterAddress,
60
60
  sender: account.address,
61
61
  };
62
- const [callData, factory, fees, nonce, signature] = await Promise.all([
62
+ const [callData, factory, fees, nonce] = await Promise.all([
63
63
  (async () => {
64
64
  if (parameters.calls)
65
65
  return account.encodeCalls(parameters.calls.map((call_) => {
@@ -138,13 +138,6 @@ async function prepareUserOperation(client, parameters_) {
138
138
  return parameters.nonce;
139
139
  return account.getNonce();
140
140
  })(),
141
- (async () => {
142
- if (!properties.includes('signature'))
143
- return undefined;
144
- if (typeof parameters.signature !== 'undefined')
145
- return parameters.signature;
146
- return account.getStubSignature();
147
- })(),
148
141
  ]);
149
142
  if (typeof callData !== 'undefined')
150
143
  request.callData = callData;
@@ -154,8 +147,12 @@ async function prepareUserOperation(client, parameters_) {
154
147
  request = { ...request, ...fees };
155
148
  if (typeof nonce !== 'undefined')
156
149
  request.nonce = nonce;
157
- if (typeof signature !== 'undefined')
158
- request.signature = signature;
150
+ if (properties.includes('signature')) {
151
+ if (typeof parameters.signature !== 'undefined')
152
+ request.signature = parameters.signature;
153
+ else
154
+ request.signature = await account.getStubSignature(request);
155
+ }
159
156
  if (account.entryPoint.version === '0.6' && !request.initCode)
160
157
  request.initCode = '0x';
161
158
  let chainId;
@@ -1 +1 @@
1
- {"version":3,"file":"prepareUserOperation.js","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":";;AAsQA,oDAqYC;AA1oBD,6EAGgD;AAChD,yFAGsD;AACtD,yEAAiF;AAGjF,2DAAiE;AAYjE,oFAGiD;AACjD,6DAA4E;AAC5E,8DAAuD;AACvD,mEAA4D;AAkB5D,0EAGyC;AACzC,kFAG6C;AAC7C,+EAGsC;AAEtC,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,WAAW;CACH,CAAA;AAkMH,KAAK,UAAU,oBAAoB,CAUxC,MAAqD,EACrD,WAKC;IAID,MAAM,UAAU,GAAG,WAA6C,CAAA;IAChE,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,UAAU,EAAE,UAAU,GAAG,iBAAiB,EAC1C,aAAa,GACd,GAAG,UAAU,CAAA;IAMd,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,iCAAoB,EAAE,CAAA;IAC/C,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAA;IAMtC,MAAM,aAAa,GAAG,MAAkC,CAAA;IAMxD,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,aAAa,EAAE,SAAS,CAAA;IAClE,MAAM,gBAAgB,GAAG,OAAO,SAA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rC,GAAG,CAAC,6BAA6B;aACL,CAAA;QAClC,CAAC;IACH,CAAC;IAQD,IACE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;QAChC,gBAAgB;QAChB,CAAC,gBAAgB;QACjB,CAAC,UAAU,CAAC,gBAAgB;QAC5B,CAAC,oBAAoB,EACrB,CAAC;QAED,MAAM,SAAS,GAAG,MAAM,gBAAgB,CAAC;YACvC,OAAO,EAAE,MAAM,UAAU,EAAE;YAC3B,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;YAC7C,OAAO,EAAE,gBAAgB;YACzB,GAAI,OAAyB;SAC9B,CAAC,CAAA;QACF,OAAO,GAAG;YACR,GAAG,OAAO;YACV,GAAG,SAAS;SACkB,CAAA;IAClC,CAAC;IAMD,OAAO,OAAO,CAAC,KAAK,CAAA;IACpB,OAAO,OAAO,CAAC,UAAU,CAAA;IACzB,OAAO,OAAO,CAAC,gBAAgB,CAAA;IAC/B,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,SAAS,CAAA;IAInE,OAAO,OAKN,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"prepareUserOperation.js","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":";;AAsQA,oDA2YC;AAhpBD,6EAGgD;AAChD,yFAGsD;AACtD,yEAAiF;AAGjF,2DAAiE;AAYjE,oFAGiD;AACjD,6DAA4E;AAC5E,8DAAuD;AACvD,mEAA4D;AAkB5D,0EAGyC;AACzC,kFAG6C;AAC7C,+EAGsC;AAEtC,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,WAAW;CACH,CAAA;AAkMH,KAAK,UAAU,oBAAoB,CAUxC,MAAqD,EACrD,WAKC;IAID,MAAM,UAAU,GAAG,WAA6C,CAAA;IAChE,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG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GAAG,CAAC,YAAY;gBACtD,kBAAkB,EAChB,OAAO,CAAC,kBAAkB,IAAI,GAAG,CAAC,kBAAkB;gBACtD,oBAAoB,EAClB,OAAO,CAAC,oBAAoB,IAAI,GAAG,CAAC,oBAAoB;gBAC1D,uBAAuB,EACrB,OAAO,CAAC,uBAAuB,IAAI,GAAG,CAAC,uBAAuB;gBAChE,6BAA6B,EAC3B,OAAO,CAAC,6BAA6B;oBACrC,GAAG,CAAC,6BAA6B;aACL,CAAA;QAClC,CAAC;IACH,CAAC;IAQD,IACE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;QAChC,gBAAgB;QAChB,CAAC,gBAAgB;QACjB,CAAC,UAAU,CAAC,gBAAgB;QAC5B,CAAC,oBAAoB,EACrB,CAAC;QAED,MAAM,SAAS,GAAG,MAAM,gBAAgB,CAAC;YACvC,OAAO,EAAE,MAAM,UAAU,EAAE;YAC3B,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;YAC7C,OAAO,EAAE,gBAAgB;YACzB,GAAI,OAAyB;SAC9B,CAAC,CAAA;QACF,OAAO,GAAG;YACR,GAAG,OAAO;YACV,GAAG,SAAS;SACkB,CAAA;IAClC,CAAC;IAMD,OAAO,OAAO,CAAC,KAAK,CAAA;IACpB,OAAO,OAAO,CAAC,UAAU,CAAA;IACzB,OAAO,OAAO,CAAC,gBAAgB,CAAA;IAC/B,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,SAAS,CAAA;IAInE,OAAO,OAKN,CAAA;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.21.38';
4
+ exports.version = '2.21.39';
5
5
  //# sourceMappingURL=version.js.map
@@ -100,7 +100,7 @@ export async function prepareUserOperation(client, parameters_) {
100
100
  ////////////////////////////////////////////////////////////////////////////////
101
101
  // Concurrently prepare properties required to fill the User Operation.
102
102
  ////////////////////////////////////////////////////////////////////////////////
103
- const [callData, factory, fees, nonce, signature] = await Promise.all([
103
+ const [callData, factory, fees, nonce] = await Promise.all([
104
104
  (async () => {
105
105
  if (parameters.calls)
106
106
  return account.encodeCalls(parameters.calls.map((call_) => {
@@ -186,13 +186,6 @@ export async function prepareUserOperation(client, parameters_) {
186
186
  return parameters.nonce;
187
187
  return account.getNonce();
188
188
  })(),
189
- (async () => {
190
- if (!properties.includes('signature'))
191
- return undefined;
192
- if (typeof parameters.signature !== 'undefined')
193
- return parameters.signature;
194
- return account.getStubSignature();
195
- })(),
196
189
  ]);
197
190
  ////////////////////////////////////////////////////////////////////////////////
198
191
  // Fill User Operation with the prepared properties from above.
@@ -205,8 +198,15 @@ export async function prepareUserOperation(client, parameters_) {
205
198
  request = { ...request, ...fees };
206
199
  if (typeof nonce !== 'undefined')
207
200
  request.nonce = nonce;
208
- if (typeof signature !== 'undefined')
209
- request.signature = signature;
201
+ ////////////////////////////////////////////////////////////////////////////////
202
+ // Fill User Operation with the `signature` property.
203
+ ////////////////////////////////////////////////////////////////////////////////
204
+ if (properties.includes('signature')) {
205
+ if (typeof parameters.signature !== 'undefined')
206
+ request.signature = parameters.signature;
207
+ else
208
+ request.signature = await account.getStubSignature(request);
209
+ }
210
210
  ////////////////////////////////////////////////////////////////////////////////
211
211
  // `initCode` is required to be filled with EntryPoint 0.6.
212
212
  ////////////////////////////////////////////////////////////////////////////////
@@ -1 +1 @@
1
- {"version":3,"file":"prepareUserOperation.js","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,GACb,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAEL,kBAAkB,GACnB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAA;AAGjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA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QAAQ;QAAE,OAAO,OAAO,CAAC,SAAS,CAAA;IAEnE,gFAAgF;IAEhF,OAAO,OAKN,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"prepareUserOperation.js","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,GACb,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAEL,kBAAkB,GACnB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAA;AAGjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAYjE,OAAO,EAEL,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAwB,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAkB5D,OAAO,EAEL,gBAAgB,IAAI,iBAAiB,GACtC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAEL,oBAAoB,IAAI,qBAAqB,GAC9C,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,wBAAwB,GACzB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,WAAW;CACH,CAAA;AAwKV;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAUxC,MAAqD,EACrD,WAKC;IAID,MAAM,UAAU,GAAG,WAA6C,CAAA;IAChE,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,UAAU,EAAE,UAAU,GAAG,iBAAiB,EAC1C,aAAa,GACd,GAAG,UAAU,CAAA;IAEd,gFAAgF;IAChF,qCAAqC;IACrC,g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UAAU,CAAC,OAAO;YAC7C,OAAO,EAAE,gBAAgB;YACzB,GAAI,OAAyB;SAC9B,CAAC,CAAA;QACF,OAAO,GAAG;YACR,GAAG,OAAO;YACV,GAAG,SAAS;SACkB,CAAA;IAClC,CAAC;IAED,gFAAgF;IAChF,gFAAgF;IAChF,gFAAgF;IAEhF,OAAO,OAAO,CAAC,KAAK,CAAA;IACpB,OAAO,OAAO,CAAC,UAAU,CAAA;IACzB,OAAO,OAAO,CAAC,gBAAgB,CAAA;IAC/B,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,SAAS,CAAA;IAEnE,gFAAgF;IAEhF,OAAO,OAKN,CAAA;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = '2.21.38';
1
+ export const version = '2.21.39';
2
2
  //# sourceMappingURL=version.js.map
@@ -99,7 +99,7 @@ export type SmartAccountImplementation<entryPointAbi extends Abi | readonly unkn
99
99
  * // '0x...'
100
100
  * ```
101
101
  */
102
- getStubSignature: () => Promise<Hex>;
102
+ getStubSignature: (parameters?: UserOperationRequest | undefined) => Promise<Hex>;
103
103
  /** Custom nonce key manager. */
104
104
  nonceKeyManager?: NonceManager | undefined;
105
105
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../account-abstraction/accounts/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,IAAI,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAE7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,M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E,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACnE,WAAW,EAAE,CAAC,EACZ,OAAO,GACR,EAAE;QAAE,OAAO,EAAE,eAAe,CAAA;KAAE,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACnE,aAAa,EAAE,CACb,KAAK,CAAC,SAAS,SAAS,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrE,WAAW,SAAS,MAAM,SAAS,GAAG,cAAc,GAAG,MAAM,SAAS,EAEtE,mBAAmB,EAAE,mBAAmB,CAAC,SAAS,EAAE,WAAW,CAAC,KAC7D,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACpC,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"prepareUserOperation.d.ts","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,+CAA+C,CAAA;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAS,EACV,MAAM,yBAAyB,C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,MAAM,CAAC,SAAS,KAAK,GAAG,EAAE,GAAG,aAAa,CAAC,GACjE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,GACtC,EAAE,GACF,aAAa,CAAC,eAAe,CAAC,CAAC,GACnC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,KAAK,GAC5C,EAAE,GACF,mBAAmB,CAAC,eAAe,CAAC,CAAC,GACzC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,KAAK,GAAG,EAAE,GAAG,mBAAmB,CAAC,CAC/E,CAAA;AAED,MAAM,MAAM,6BAA6B,GACrC,qBAAqB,GACrB,6BAA6B,GAC7B,yBAAyB,GACzB,2BAA2B,GAC3B,eAAe,GACf,2BAA2B,GAC3B,SAAS,CAAA;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EACtC,KAAK,CAAC,OAAO,SAAS,2BAA2B,CAC/C,OAAO,EACP,eAAe,EACf,KAAK,CACN,EACD,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EACrD,WAAW,EAAE,8BAA8B,CACzC,OAAO,EACP,eAAe,EACf,KAAK,EACL,OAAO,CACR,GACA,OAAO,CACR,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CACzE,CAkXA"}
1
+ {"version":3,"file":"prepareUserOperation.d.ts","sourceRoot":"","sources":["../../../../account-abstraction/actions/bundler/prepareUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EACL,KAAK,qBAAqB,EA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ACf,KAAK,CACN,EACD,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EACrD,WAAW,EAAE,8BAA8B,CACzC,OAAO,EACP,eAAe,EACf,KAAK,EACL,OAAO,CACR,GACA,OAAO,CACR,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CACzE,CAwXA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.21.38";
1
+ export declare const version = "2.21.39";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -112,7 +112,9 @@ export type SmartAccountImplementation<
112
112
  * // '0x...'
113
113
  * ```
114
114
  */
115
- getStubSignature: () => Promise<Hex>
115
+ getStubSignature: (
116
+ parameters?: UserOperationRequest | undefined,
117
+ ) => Promise<Hex>
116
118
  /** Custom nonce key manager. */
117
119
  nonceKeyManager?: NonceManager | undefined
118
120
  /**
@@ -362,7 +362,7 @@ export async function prepareUserOperation<
362
362
  // Concurrently prepare properties required to fill the User Operation.
363
363
  ////////////////////////////////////////////////////////////////////////////////
364
364
 
365
- const [callData, factory, fees, nonce, signature] = await Promise.all([
365
+ const [callData, factory, fees, nonce] = await Promise.all([
366
366
  (async () => {
367
367
  if (parameters.calls)
368
368
  return account.encodeCalls(
@@ -468,12 +468,6 @@ export async function prepareUserOperation<
468
468
  if (typeof parameters.nonce === 'bigint') return parameters.nonce
469
469
  return account.getNonce()
470
470
  })(),
471
- (async () => {
472
- if (!properties.includes('signature')) return undefined
473
- if (typeof parameters.signature !== 'undefined')
474
- return parameters.signature
475
- return account.getStubSignature()
476
- })(),
477
471
  ])
478
472
 
479
473
  ////////////////////////////////////////////////////////////////////////////////
@@ -485,7 +479,19 @@ export async function prepareUserOperation<
485
479
  request = { ...request, ...(factory as any) }
486
480
  if (typeof fees !== 'undefined') request = { ...request, ...(fees as any) }
487
481
  if (typeof nonce !== 'undefined') request.nonce = nonce
488
- if (typeof signature !== 'undefined') request.signature = signature
482
+
483
+ ////////////////////////////////////////////////////////////////////////////////
484
+ // Fill User Operation with the `signature` property.
485
+ ////////////////////////////////////////////////////////////////////////////////
486
+
487
+ if (properties.includes('signature')) {
488
+ if (typeof parameters.signature !== 'undefined')
489
+ request.signature = parameters.signature
490
+ else
491
+ request.signature = await account.getStubSignature(
492
+ request as UserOperation,
493
+ )
494
+ }
489
495
 
490
496
  ////////////////////////////////////////////////////////////////////////////////
491
497
  // `initCode` is required to be filled with EntryPoint 0.6.
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.21.38'
1
+ export const version = '2.21.39'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.21.38",
4
+ "version": "2.21.39",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",