Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cheatcodes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ vergen = { workspace = true, default-features = false, features = [
] }

[dependencies]
assertion-executor = { git = "https://github.com/phylaxsystems/credible-sdk.git", rev = "d17125a", features = ["phoundry"]}
assertion-executor = { git = "https://github.com/phylaxsystems/credible-sdk.git", rev = "a7571bb", features = ["phoundry"]}
#assertion-executor = { path = "../../../credible-sdk/crates/assertion-executor", features = ["phoundry"]}

foundry-cheatcodes-spec.workspace = true
Expand Down
17 changes: 6 additions & 11 deletions crates/cheatcodes/src/credible.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{inspector::Ecx, Cheatcode, Cheatcodes, CheatcodesExecutor, CheatsCtxt, Result, Vm::*};
use alloy_primitives::{Bytes, FixedBytes, TxKind};
use alloy_sol_types::{Revert, SolError, SolEvent, SolValue};
use alloy_sol_types::{Revert, SolError, SolValue};
use assertion_executor::{
db::{fork_db::ForkDb, DatabaseCommit, DatabaseRef},
primitives::{
Expand All @@ -11,10 +11,7 @@ use assertion_executor::{
ExecutorConfig,
};

use foundry_evm_core::{
abi::console::ds::Console,
backend::{DatabaseError, DatabaseExt},
};
use foundry_evm_core::backend::{DatabaseError, DatabaseExt};
use revm::context_interface::{ContextTr, JournalTr};
use std::{
cmp::max,
Expand Down Expand Up @@ -207,12 +204,10 @@ pub fn execute_assertion(
.first()
.expect("Expected 1 assertion to be executed, but got 0");

for log in assertion_fn_result.as_result().logs() {
if Some(&Console::log::SIGNATURE_HASH) == log.topics().first() {
let decoded_log = Console::log::decode_log(log);
if let Ok(log_data) = decoded_log {
inspector.console_log(&format!("{}", log_data.val));
}
if !assertion_fn_result.console_logs.is_empty() {
inspector.console_log("Assertion function logs: ");
for log in assertion_fn_result.console_logs.iter() {
inspector.console_log(log);
}
}

Expand Down
Loading