Skip to content

Commit 90ff48c

Browse files
authored
Merge pull request #17773 from MinaProtocol/lyh/fix-test-executive-for-mainnet
Fix test executive for mainnet build
2 parents 42be0d2 + 26d5fbe commit 90ff48c

File tree

15 files changed

+38
-34
lines changed

15 files changed

+38
-34
lines changed

src/app/test_executive/hard_fork.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
303303
}
304304
in
305305
Transaction_snark.For_tests.deploy_snapp ~constraint_constants
306-
zkapp_command_spec
306+
~signature_kind zkapp_command_spec
307307
in
308308
let%bind zkapp_command_update_vk_proof, zkapp_command_update_vk_impossible =
309309
let snapp_update =

src/app/test_executive/peers_reliability_test.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
3434
]
3535
}
3636

37-
let run ~config:_ network t =
37+
let run ~config:Test_config.{ signature_kind; _ } network t =
3838
let open Network in
3939
let open Malleable_error.Let_syntax in
4040
let logger = Logger.create () in
@@ -143,7 +143,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
143143
Malleable_error.lift
144144
@@ Transaction_snark.For_tests.deploy_snapp
145145
~constraint_constants:(Network.constraint_constants network)
146-
parties_spec
146+
~signature_kind parties_spec
147147
in
148148
let%bind () =
149149
send_zkapp ~logger

src/app/test_executive/verification_key_update.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
207207
}
208208
in
209209
Malleable_error.lift
210-
@@ Transaction_snark.For_tests.deploy_snapp ~constraint_constants spec
210+
@@ Transaction_snark.For_tests.deploy_snapp ~constraint_constants
211+
~signature_kind spec
211212
in
212213
let call_forest_to_zkapp ~call_forest ~nonce : Zkapp_command.t =
213214
let memo = Signed_command_memo.empty in

src/app/test_executive/zkapps.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
178178
in
179179
Malleable_error.lift
180180
@@ Transaction_snark.For_tests.deploy_snapp ~constraint_constants
181-
zkapp_command_spec
181+
~signature_kind zkapp_command_spec
182182
in
183183
let%bind.Deferred zkapp_command_update_permissions, permissions_updated =
184184
(* construct a Zkapp_command.t, similar to zkapp_test_transaction
@@ -347,7 +347,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
347347
}
348348
in
349349
Transaction_snark.For_tests.single_account_update ~constraint_constants
350-
spec
350+
~signature_kind spec
351351
in
352352
( snapp_update
353353
, zkapp_command_update_all

src/app/test_executive/zkapps_timing.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
3333
; num_archive_nodes = 1
3434
}
3535

36-
let run ~config:_ network t =
36+
let run ~config:Test_config.{ signature_kind; _ } network t =
3737
let open Malleable_error.Let_syntax in
3838
let logger = Logger.create () in
3939
let all_mina_nodes = Network.all_mina_nodes network in
@@ -104,7 +104,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
104104
in
105105
let%map.Async.Deferred deploy_zkapp =
106106
Transaction_snark.For_tests.deploy_snapp ~constraint_constants
107-
zkapp_command_spec
107+
~signature_kind zkapp_command_spec
108108
in
109109
( deploy_zkapp
110110
, timing_account_id
@@ -151,7 +151,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
151151
in
152152
Malleable_error.lift
153153
@@ Transaction_snark.For_tests.deploy_snapp ~constraint_constants
154-
zkapp_command_spec
154+
~signature_kind zkapp_command_spec
155155
in
156156
(* Create a timed account that with initial liquid balance being 0, and vesting 1 mina at each slot.
157157
This account would be used to test the edge case of vesting. See `zkapp_command_transfer_from_third_timed_account`
@@ -202,7 +202,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
202202
in
203203
let%map.Async.Deferred deploy_zkapp =
204204
Transaction_snark.For_tests.deploy_snapp ~constraint_constants
205-
zkapp_command_spec
205+
~signature_kind zkapp_command_spec
206206
in
207207
(deploy_zkapp, timing_account_id, zkapp_keypair)
208208
in
@@ -244,7 +244,7 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
244244
}
245245
in
246246
Transaction_snark.For_tests.deploy_snapp ~constraint_constants
247-
zkapp_command_spec
247+
~signature_kind zkapp_command_spec
248248
in
249249
let%bind zkapp_command_transfer_from_timed_account =
250250
let open Mina_base in

src/app/zkapp_test_transaction/lib/commands.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ let create_zkapp_account ~debug ~sender ~sender_nonce ~fee ~fee_payer
368368
in
369369
let%bind zkapp_command =
370370
Transaction_snark.For_tests.deploy_snapp
371-
~permissions:Permissions.user_default ~constraint_constants spec
371+
~permissions:Permissions.user_default ~constraint_constants
372+
~signature_kind:Testnet spec
372373
in
373374
let%map () =
374375
if debug then

src/lib/mina_graphql/itn_zkapps.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ let deploy_zkapps ~scheduler_tbl ~mina ~ledger ~deployment_fee ~max_cost
5454
in
5555
let zkapp_command =
5656
Transaction_snark.For_tests.deploy_snapp ~constraint_constants
57+
~signature_kind:Mina_signature_kind.t_DEPRECATED
5758
~permissions:
5859
( if max_cost then
5960
{ Permissions.user_default with

src/lib/network_pool/transaction_pool.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ let%test_module _ =
20162016
in
20172017
let%map zkapp_command =
20182018
Transaction_snark.For_tests.single_account_update ~constraint_constants
2019-
spec
2019+
~signature_kind spec
20202020
in
20212021
Or_error.ok_exn
20222022
(Zkapp_command.Verifiable.create ~failed:false

src/lib/staged_ledger/staged_ledger.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5210,7 +5210,7 @@ let%test_module "staged ledger tests" =
52105210
in
52115211
let%bind zkapp_command =
52125212
single_account_update ~zkapp_prover_and_vk
5213-
~constraint_constants spec
5213+
~constraint_constants ~signature_kind spec
52145214
in
52155215
Mina_transaction_logic.For_tests.Init_ledger.init
52165216
(module Ledger.Ledger_inner)

src/lib/transaction_snark/test/account_timing/account_timing.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ let%test_module "account timing check" =
16741674
in
16751675
let zkapp_command, _, _, _ =
16761676
( Transaction_snark.For_tests.deploy_snapp ~constraint_constants
1677-
create_timed_account_spec
1677+
~signature_kind create_timed_account_spec
16781678
, timed_account_id
16791679
, create_timed_account_spec.snapp_update
16801680
, zkapp_keypair )
@@ -2269,7 +2269,7 @@ let%test_module "account timing check" =
22692269
in
22702270
let create_timed_account_zkapp_command, _, _, _ =
22712271
( Transaction_snark.For_tests.deploy_snapp ~no_auth:true
2272-
~constraint_constants create_timed_account_spec
2272+
~constraint_constants ~signature_kind create_timed_account_spec
22732273
, timing_account_id
22742274
, create_timed_account_spec.snapp_update
22752275
, zkapp_keypair )

0 commit comments

Comments
 (0)