File tree Expand file tree Collapse file tree 2 files changed +7
-15
lines changed
aa-sdk/core/src/actions/smartAccount
account-kit/smart-contracts/src/ma-v2/client Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,5 @@ export const signTypedData: <
38
38
throw new AccountNotFoundError ( ) ;
39
39
}
40
40
41
- // We must bypass 6492 if we're signing a deferred action
42
- if (
43
- typedData . primaryType === "DeferredAction" &&
44
- typedData . domain ?. verifyingContract === account . address
45
- ) {
46
- return account . signTypedData ( typedData ) ;
47
- }
48
-
49
41
return account . signTypedDataWith6492 ( typedData ) ;
50
42
} ;
Original file line number Diff line number Diff line change @@ -368,10 +368,10 @@ describe("MA v2 Tests", async () => {
368
368
isGlobalValidation : isGlobalValidation ,
369
369
} ) ;
370
370
371
- // Sign the typed data using the owner (fallback) validation
372
- const deferredValidationSig = await provider . signTypedData ( {
373
- typedData : typedData ,
374
- } ) ;
371
+ // Sign the typed data using the owner (fallback) validation, this must be done via the account to skip 6492
372
+ const deferredValidationSig = await provider . account . signTypedData (
373
+ typedData
374
+ ) ;
375
375
376
376
// Build the full hex to prepend to the UO signature
377
377
// This MUST be done with the *same* client that has signed the typed data
@@ -503,9 +503,9 @@ describe("MA v2 Tests", async () => {
503
503
} ) ;
504
504
505
505
// Sign the typed data using the first session key
506
- const deferredValidationSig = await sessionKeyClient . signTypedData ( {
507
- typedData : typedData ,
508
- } ) ;
506
+ const deferredValidationSig = await sessionKeyClient . account . signTypedData (
507
+ typedData
508
+ ) ;
509
509
510
510
// Build the full hex to prepend to the UO signature
511
511
// This MUST be done with the *same* client that has signed the typed data
You can’t perform that action at this time.
0 commit comments