From 98b668aa996a99776572bbf893eeff844bf2e698 Mon Sep 17 00:00:00 2001 From: Evgeny Ukhanov Date: Thu, 29 Feb 2024 10:10:42 +0100 Subject: [PATCH] Feat: extend `ExecutionProfile` with logs for tests (#910) ## Description Extended `ExecutionProfile` with logs for tests. Changes related only to `engine-tests` and do not affect main contract. ### Motivation To profile NEAR contract execution flow it's convenient to debug. --- engine-tests/src/utils/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine-tests/src/utils/mod.rs b/engine-tests/src/utils/mod.rs index eef2cd8c8..45d3c1e55 100644 --- a/engine-tests/src/utils/mod.rs +++ b/engine-tests/src/utils/mod.rs @@ -681,6 +681,7 @@ impl Default for AuroraRunner { pub struct ExecutionProfile { pub host_breakdown: ProfileDataV3, total_gas_cost: u64, + pub logs: Vec, } impl ExecutionProfile { @@ -688,6 +689,7 @@ impl ExecutionProfile { Self { host_breakdown: outcome.profile.clone(), total_gas_cost: outcome.burnt_gas, + logs: outcome.logs.clone(), } }