Skip to content

Commit 9c37e67

Browse files
committed
fix(cli): fix warning which is failing in the CI
1 parent 3f64b6d commit 9c37e67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/katana/src/cli/init/deployment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use katana_utils::{TxWaiter, TxWaitingError};
1515
use piltover::{AppchainContract, AppchainContractReader, ProgramInfo};
1616
use spinoff::{spinners, Color, Spinner};
1717
use starknet::accounts::{Account, AccountError, ConnectedAccount, SingleOwnerAccount};
18-
use starknet::contract::ContractFactory;
18+
use starknet::contract::{ContractFactory, UdcSelector};
1919
use starknet::core::crypto::compute_hash_on_elements;
2020
use starknet::core::types::{BlockId, BlockTag, FlattenedSierraClass, StarknetError};
2121
use starknet::macros::short_string;
@@ -130,7 +130,7 @@ pub async fn deploy_settlement_contract(
130130
sp.update_text("Deploying contract...");
131131

132132
let salt = Felt::from(rand::random::<u64>());
133-
let factory = ContractFactory::new(class_hash, &account);
133+
let factory = ContractFactory::new_with_udc(class_hash, &account, UdcSelector::Legacy);
134134

135135
const INITIAL_STATE_ROOT: Felt = Felt::ZERO;
136136
/// When updating the piltover contract with the genesis block (ie block number 0), in the

0 commit comments

Comments
 (0)