File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
extensions/erc7702/account Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -29,4 +29,8 @@ export {
29
29
type CreateSessionKeyOptions ,
30
30
createSessionKey ,
31
31
isCreateSessionKeySupported ,
32
- } from "../../extensions/erc7702/account/createSessionKey.js" ;
32
+ } from "../../extensions/erc7702/account/createSessionKey.js" ;
33
+ export type {
34
+ LimitType ,
35
+ Condition ,
36
+ } from "../../extensions/erc7702/account/types.js" ;
Original file line number Diff line number Diff line change @@ -33,4 +33,8 @@ export {
33
33
type CreateSessionKeyOptions ,
34
34
createSessionKey ,
35
35
isCreateSessionKeySupported ,
36
- } from "../../extensions/erc7702/account/createSessionKey.js" ;
36
+ } from "../../extensions/erc7702/account/createSessionKey.js" ;
37
+ export type {
38
+ LimitType ,
39
+ Condition ,
40
+ } from "../../extensions/erc7702/account/types.js" ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { parseEventLogs } from "../../../event/actions/parse-logs.js";
14
14
import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js" ;
15
15
import { sessionCreatedEvent } from "../__generated__/MinimalAccount/events/SessionCreated.js" ;
16
16
import { createSessionKey } from "./createSessionKey.js" ;
17
+ import { Condition , LimitType } from "./types.js" ;
17
18
18
19
describe . runIf ( process . env . TW_SECRET_KEY ) (
19
20
"Session Key Behavior" ,
@@ -84,13 +85,19 @@ describe.runIf(process.env.TW_SECRET_KEY)(
84
85
account : account ,
85
86
callPolicies : [
86
87
{
87
- constraints : [ ] ,
88
+ constraints : [
89
+ {
90
+ condition : Condition . Unconstrained ,
91
+ index : 0n ,
92
+ refValue : "0x0000000000000000000000000000000000000000000000000000000000000000"
93
+ }
94
+ ] ,
88
95
maxValuePerUse : 0n ,
89
96
selector : "0x00000000" ,
90
97
target : ZERO_ADDRESS ,
91
98
valueLimit : {
92
99
limit : 0n ,
93
- limitType : 0 ,
100
+ limitType : LimitType . Unlimited ,
94
101
period : 0n ,
95
102
} ,
96
103
} ,
You can’t perform that action at this time.
0 commit comments