diff --git a/aa-sdk/core/src/middleware/defaults/7702gasEstimator.ts b/aa-sdk/core/src/middleware/defaults/7702gasEstimator.ts index 89249aa605..45f6b135d0 100644 --- a/aa-sdk/core/src/middleware/defaults/7702gasEstimator.ts +++ b/aa-sdk/core/src/middleware/defaults/7702gasEstimator.ts @@ -70,7 +70,7 @@ export const default7702GasEstimator: ( // Note: does not omit the delegation from estimation if the account is already 7702 delegated. - (struct as UserOperationStruct<"0.7.0">).eip7702auth = { + (struct as UserOperationStruct<"0.7.0">).eip7702Auth = { chainId: toHex(params.client.chain.id), nonce: toHex(accountNonce), address: implementationAddress, @@ -81,7 +81,7 @@ export const default7702GasEstimator: ( const estimatedUO = await gasEstimator_(struct, params); - estimatedUO.eip7702auth = undefined; // Strip out the auth after estimation. + estimatedUO.eip7702Auth = undefined; // Strip out the auth after estimation. return estimatedUO; }; diff --git a/aa-sdk/core/src/middleware/defaults/7702signer.ts b/aa-sdk/core/src/middleware/defaults/7702signer.ts index 68ce1c8e46..7a13405b1f 100644 --- a/aa-sdk/core/src/middleware/defaults/7702signer.ts +++ b/aa-sdk/core/src/middleware/defaults/7702signer.ts @@ -92,7 +92,7 @@ export const default7702UserOpSigner: ( return { ...uo, - eip7702auth: { + eip7702Auth: { // deepHexlify doesn't encode number(0) correctly, it returns "0x" chainId: toHex(client.chain.id), nonce: toHex(accountNonce), diff --git a/aa-sdk/core/src/types.ts b/aa-sdk/core/src/types.ts index 435c5a87dd..44770da153 100644 --- a/aa-sdk/core/src/types.ts +++ b/aa-sdk/core/src/types.ts @@ -202,7 +202,7 @@ export interface UserOperationRequest_v7 { // [!endregion UserOperationRequest_v7] export type Eip7702ExtendedFields = { - eip7702auth?: { + eip7702Auth?: { chainId: Hex; nonce: Hex; address: Address;