@@ -34,21 +34,20 @@ beforeAll(async () => {
34
34
secretKey : SECRET_KEY ,
35
35
} ) ;
36
36
contract = await sdk . getContract (
37
- "0x638263e3eAa3917a53630e61B1fBa685308024fa" , // arb sep edition drop
37
+ "0x638263e3eAa3917a53630e61B1fBa685308024fa" , // edition drop
38
38
) ;
39
39
} ) ;
40
40
41
41
describeIf ( ! ! SECRET_KEY ) (
42
42
"SmartWallet core tests" ,
43
- {
44
- timeout : 240_000 ,
45
- } ,
46
43
( ) => {
47
44
it ( "can connect" , async ( ) => {
48
45
expect ( smartWalletAddress ) . toHaveLength ( 42 ) ;
49
46
} ) ;
50
47
51
- it ( "can execute a tx via SDK" , async ( ) => {
48
+ it ( "can execute a tx via SDK" , {
49
+ timeout : 120_000 ,
50
+ } , async ( ) => {
52
51
const tx = await contract . erc1155 . claim ( 0 , 1 ) ;
53
52
expect ( tx . receipt . transactionHash ) . toHaveLength ( 66 ) ;
54
53
const isDeployed = await smartWallet . isDeployed ( ) ;
@@ -57,29 +56,37 @@ describeIf(!!SECRET_KEY)(
57
56
expect ( balance . toNumber ( ) ) . toEqual ( 1 ) ;
58
57
} ) ;
59
58
60
- it ( "can estimate a tx" , async ( ) => {
59
+ it ( "can estimate a tx" , {
60
+ timeout : 120_000 ,
61
+ } , async ( ) => {
61
62
const preparedTx = await contract . erc1155 . claim . prepare ( 0 , 1 ) ;
62
63
const estimates = await smartWallet . estimate ( preparedTx ) ;
63
64
expect ( estimates . wei . toString ( ) ) . not . toBe ( "0" ) ;
64
65
} ) ;
65
66
66
- it ( "can execute a tx" , async ( ) => {
67
+ it ( "can execute a tx" , {
68
+ timeout : 120_000 ,
69
+ } , async ( ) => {
67
70
const preparedTx = await contract . erc1155 . claim . prepare ( 0 , 1 ) ;
68
71
const tx = await smartWallet . execute ( preparedTx ) ;
69
72
expect ( tx . receipt . transactionHash ) . toHaveLength ( 66 ) ;
70
73
const balance = await contract . erc1155 . balance ( 0 ) ;
71
74
expect ( balance . toNumber ( ) ) . toEqual ( 2 ) ;
72
75
} ) ;
73
76
74
- it ( "can execute a batched tx" , async ( ) => {
77
+ it ( "can execute a batched tx" , {
78
+ timeout : 120_000 ,
79
+ } , async ( ) => {
75
80
const preparedTx = await contract . erc1155 . claim . prepare ( 0 , 1 ) ;
76
81
const tx = await smartWallet . executeBatch ( [ preparedTx , preparedTx ] ) ;
77
82
expect ( tx . receipt . transactionHash ) . toHaveLength ( 66 ) ;
78
83
const balance = await contract . erc1155 . balance ( 0 ) ;
79
84
expect ( balance . toNumber ( ) ) . toEqual ( 4 ) ;
80
85
} ) ;
81
86
82
- it ( "can execute a raw tx" , async ( ) => {
87
+ it ( "can execute a raw tx" , {
88
+ timeout : 120_000 ,
89
+ } , async ( ) => {
83
90
const preparedTx = await contract . erc1155 . claim . prepare ( 0 , 1 ) ;
84
91
const tx = await smartWallet . executeRaw ( {
85
92
to : preparedTx . getTarget ( ) ,
@@ -90,7 +97,9 @@ describeIf(!!SECRET_KEY)(
90
97
expect ( balance . toNumber ( ) ) . toEqual ( 5 ) ;
91
98
} ) ;
92
99
93
- it ( "can execute a batched raw tx" , async ( ) => {
100
+ it ( "can execute a batched raw tx" , {
101
+ timeout : 120_000 ,
102
+ } , async ( ) => {
94
103
const preparedTx = await contract . erc1155 . claim . prepare ( 0 , 1 ) ;
95
104
const tx = await smartWallet . executeBatchRaw ( [
96
105
{
@@ -107,7 +116,9 @@ describeIf(!!SECRET_KEY)(
107
116
expect ( balance . toNumber ( ) ) . toEqual ( 7 ) ;
108
117
} ) ;
109
118
110
- it ( "can sign and verify 1271 old factory" , async ( ) => {
119
+ it ( "can sign and verify 1271 old factory" , {
120
+ timeout : 120_000 ,
121
+ } , async ( ) => {
111
122
const message = "0x1234" ;
112
123
const sig = await smartWallet . signMessage ( message ) ;
113
124
const isValidV1 = await smartWallet . verifySignature (
@@ -128,7 +139,9 @@ describeIf(!!SECRET_KEY)(
128
139
expect ( isValidV2 ) . toEqual ( true ) ;
129
140
} ) ;
130
141
131
- it ( "can sign and verify 1271 new factory" , async ( ) => {
142
+ it ( "can sign and verify 1271 new factory" , {
143
+ timeout : 240_000 ,
144
+ } , async ( ) => {
132
145
smartWallet = new SmartWallet ( {
133
146
chain,
134
147
factoryAddress : factoryAddressV2 ,
0 commit comments