@@ -5,7 +5,6 @@ use crate::transaction_fuzzer::{
55} ;
66use ark_ff:: fields:: arithmetic:: InvalidBigInt ;
77use ark_ff:: Zero ;
8- use ledger:: scan_state:: currency:: { Amount , Fee , Length , Magnitude , Nonce , Signed , Slot } ;
98use ledger:: scan_state:: transaction_logic:: protocol_state:: {
109 protocol_state_view, EpochData , EpochLedger , ProtocolStateView ,
1110} ;
@@ -15,6 +14,10 @@ use ledger::scan_state::transaction_logic::transaction_applied::{
1514use ledger:: scan_state:: transaction_logic:: {
1615 apply_transactions, Transaction , TransactionStatus , UserCommand ,
1716} ;
17+ use ledger:: scan_state:: {
18+ currency:: { Amount , Fee , Length , Magnitude , Nonce , Signed , Slot } ,
19+ transaction_logic:: transaction_applied,
20+ } ;
1821use ledger:: sparse_ledger:: LedgerIntf ;
1922use ledger:: staged_ledger:: staged_ledger:: StagedLedger ;
2023use ledger:: { dummy, Account , AccountId , Database , Mask , Timing , TokenId } ;
@@ -1103,6 +1106,25 @@ impl FuzzerCtx {
11031106 // For now we work with one transaction at a time
11041107 let applied = & applied[ 0 ] ;
11051108
1109+ match & applied. varying {
1110+ transaction_applied:: Varying :: Command ( command_applied) => {
1111+ match command_applied {
1112+ transaction_applied:: CommandApplied :: SignedCommand (
1113+ _signed_command_applied,
1114+ ) => { }
1115+ transaction_applied:: CommandApplied :: ZkappCommand (
1116+ zkapp_command_applied,
1117+ ) => zkapp_command_applied
1118+ . command
1119+ . data
1120+ . account_updates
1121+ . accumulate_hashes ( ) , // Needed because of delayed hashing
1122+ }
1123+ }
1124+ transaction_applied:: Varying :: FeeTransfer ( _fee_transfer_applied) => { }
1125+ transaction_applied:: Varying :: Coinbase ( _coinbase_applied) => { }
1126+ }
1127+
11061128 if expected_apply_result. apply_result . len ( ) != 1 {
11071129 println ! (
11081130 "!!! Apply failed in OCaml (error: {}) but it didn't in Rust: {:?}" ,
0 commit comments