Skip to content

Commit fa55caa

Browse files
Apply access list to tracing executor for 'cast call --trace' (#10161)
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
1 parent f3b9eaf commit fa55caa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/cast/src/cmd/call.rs

+4
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ impl CallArgs {
266266
let input = tx.inner.input.into_input().unwrap_or_default();
267267
let tx_kind = tx.inner.to.expect("set by builder");
268268

269+
if let Some(access_list) = tx.inner.access_list {
270+
executor.env_mut().tx.access_list = access_list.0
271+
}
272+
269273
let trace = match tx_kind {
270274
TxKind::Create => {
271275
let deploy_result = executor.deploy(from, input, value, None);

0 commit comments

Comments
 (0)