@@ -82,10 +82,9 @@ fn test_permission_migration() {
82
82
& [
83
83
attacker_account. clone( ) ,
84
84
mapping_account. clone( ) ,
85
- next_mapping_account. clone( ) ,
86
85
permissions_account. clone( )
87
86
] ,
88
- bytes_of:: <CommandHeader >( & AddMapping . into( ) )
87
+ bytes_of:: <CommandHeader >( & InitMapping . into( ) )
89
88
) ,
90
89
Err ( OracleError :: PermissionViolation . into( ) )
91
90
) ;
@@ -106,7 +105,7 @@ fn test_permission_migration() {
106
105
process_instruction(
107
106
& program_id,
108
107
& [
109
- funding_account . clone( ) ,
108
+ attacker_account . clone( ) ,
110
109
mapping_account. clone( ) ,
111
110
next_mapping_account. clone( ) ,
112
111
permissions_account. clone( )
@@ -120,7 +119,7 @@ fn test_permission_migration() {
120
119
process_instruction(
121
120
& program_id,
122
121
& [
123
- funding_account . clone( ) ,
122
+ attacker_account . clone( ) ,
124
123
mapping_account. clone( ) ,
125
124
product_account. clone( ) ,
126
125
permissions_account. clone( )
@@ -134,7 +133,7 @@ fn test_permission_migration() {
134
133
process_instruction(
135
134
& program_id,
136
135
& [
137
- funding_account . clone( ) ,
136
+ attacker_account . clone( ) ,
138
137
product_account. clone( ) ,
139
138
permissions_account. clone( )
140
139
] ,
@@ -147,7 +146,7 @@ fn test_permission_migration() {
147
146
process_instruction(
148
147
& program_id,
149
148
& [
150
- funding_account . clone( ) ,
149
+ attacker_account . clone( ) ,
151
150
product_account. clone( ) ,
152
151
price_account. clone( ) ,
153
152
permissions_account. clone( )
@@ -165,7 +164,7 @@ fn test_permission_migration() {
165
164
process_instruction(
166
165
& program_id,
167
166
& [
168
- funding_account . clone( ) ,
167
+ attacker_account . clone( ) ,
169
168
price_account. clone( ) ,
170
169
permissions_account. clone( )
171
170
] ,
@@ -182,7 +181,7 @@ fn test_permission_migration() {
182
181
process_instruction(
183
182
& program_id,
184
183
& [
185
- funding_account . clone( ) ,
184
+ attacker_account . clone( ) ,
186
185
price_account. clone( ) ,
187
186
permissions_account. clone( )
188
187
] ,
@@ -198,7 +197,7 @@ fn test_permission_migration() {
198
197
process_instruction(
199
198
& program_id,
200
199
& [
201
- funding_account . clone( ) ,
200
+ attacker_account . clone( ) ,
202
201
price_account. clone( ) ,
203
202
permissions_account. clone( )
204
203
] ,
@@ -214,7 +213,7 @@ fn test_permission_migration() {
214
213
process_instruction(
215
214
& program_id,
216
215
& [
217
- funding_account . clone( ) ,
216
+ attacker_account . clone( ) ,
218
217
price_account. clone( ) ,
219
218
permissions_account. clone( )
220
219
] ,
@@ -231,7 +230,7 @@ fn test_permission_migration() {
231
230
process_instruction(
232
231
& program_id,
233
232
& [
234
- funding_account . clone( ) ,
233
+ attacker_account . clone( ) ,
235
234
price_account. clone( ) ,
236
235
price_account. clone( ) , // Mock system program
237
236
permissions_account. clone( )
@@ -245,7 +244,7 @@ fn test_permission_migration() {
245
244
process_instruction(
246
245
& program_id,
247
246
& [
248
- funding_account . clone( ) ,
247
+ attacker_account . clone( ) ,
249
248
product_account. clone( ) ,
250
249
price_account. clone( ) ,
251
250
permissions_account. clone( )
@@ -259,7 +258,7 @@ fn test_permission_migration() {
259
258
process_instruction(
260
259
& program_id,
261
260
& [
262
- funding_account . clone( ) ,
261
+ attacker_account . clone( ) ,
263
262
mapping_account. clone( ) ,
264
263
product_account. clone( ) ,
265
264
permissions_account. clone( )
0 commit comments