Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Kaput <[email protected]>
  • Loading branch information
mkaput authored Jan 24, 2024
1 parent 6e11d2b commit b4cebec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scarb/src/compiler/compilers/starknet_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ impl ContractArtifacts {
package_name: &PackageName,
contract_name: &str,
contract_path: &str,
module_path: String,
module_path: &str,
) -> Self {
Self {
id: short_hash((&package_name, &contract_path)),
package_name: package_name.clone(),
contract_name: contract_name.to_owned(),
module_path,
module_path: module_path.to_owned(),
artifacts: ContractArtifact::default(),
}
}
Expand Down Expand Up @@ -282,7 +282,7 @@ impl Compiler for StarknetContractCompiler {
&package_name,
&contract_name,
contract_selector.full_path().as_str(),
decl.module_id().full_path(db.upcast_mut()).clone(),
&decl.module_id().full_path(db.upcast_mut()),
);

if props.sierra {
Expand Down

0 comments on commit b4cebec

Please sign in to comment.