Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-zk committed Sep 22, 2023
1 parent 52bbd6f commit 5610f50
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ use httptest::{
};
use itertools::Itertools;
use std::str::FromStr;
use vm::vm::{VmPartialExecutionResult, VmTxExecutionResult};
use vm::VmExecutionResultAndLogs;
use zksync_basic_types::{H160, U64};
use zksync_types::api::Log;
use zksync_types::tx::tx_execution_info::TxExecutionStatus;
use zksync_types::{
fee::Fee, l2::L2Tx, Address, L2ChainId, Nonce, PackedEthSignature, ProtocolVersionId, H256,
U256,
Expand Down Expand Up @@ -455,21 +454,15 @@ pub fn default_tx_execution_info() -> TxExecutionInfo {
},
common_data: Default::default(),
received_timestamp_ms: Default::default(),
raw_bytes: None,
},
batch_number: Default::default(),
miniblock_number: Default::default(),
result: VmTxExecutionResult {
status: TxExecutionStatus::Success,
result: VmPartialExecutionResult {
logs: Default::default(),
revert_reason: Default::default(),
contracts_used: Default::default(),
cycles_used: Default::default(),
computational_gas_used: Default::default(),
},
call_traces: Default::default(),
gas_refunded: Default::default(),
operator_suggested_refund: Default::default(),
result: VmExecutionResultAndLogs {
result: vm::ExecutionResult::Success { output: vec![] },
logs: Default::default(),
statistics: Default::default(),
refunds: Default::default(),
},
}
}
Expand Down

0 comments on commit 5610f50

Please sign in to comment.