Skip to content

Commit

Permalink
fix: identification of contracts in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Nov 18, 2024
1 parent 550ebd8 commit 2dcc84f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/script/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ impl PreSimulationState {
.contracts
.iter()
.filter_map(move |(addr, contract_id)| {
let contract_name = get_contract_name(contract_id);
if let Ok(Some((_, data))) =
self.build_data.known_contracts.find_by_name_or_identifier(contract_name)
self.build_data.known_contracts.find_by_name_or_identifier(contract_id)
{
return Some((*addr, data));
}
Expand Down

0 comments on commit 2dcc84f

Please sign in to comment.