diff --git a/CHANGELOG.md b/CHANGELOG.md index 0805791683..0882d3cea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 #### Changed - The supported RPC version is now 0.9.0 +- [New UDC](https://starkscan.co/contract/0x02ceed65a4bd731034c01113685c831b01c15d7d432f71afb1cf1634b53a2125) is now used during deployment ## [0.48.1] - 2025-08-14 diff --git a/crates/sncast/src/helpers/constants.rs b/crates/sncast/src/helpers/constants.rs index 0f9360ad2d..cee3cac25b 100644 --- a/crates/sncast/src/helpers/constants.rs +++ b/crates/sncast/src/helpers/constants.rs @@ -16,7 +16,7 @@ inputs = [] "#; pub const UDC_ADDRESS: Felt = - felt!("0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf"); + felt!("0x02ceed65a4bd731034c01113685c831b01c15d7d432f71afb1cf1634b53a2125"); pub const OZ_CLASS_HASH: Felt = felt!("0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564"); // v1.0.0 pub const READY_CLASS_HASH: Felt = diff --git a/crates/sncast/src/starknet_commands/deploy.rs b/crates/sncast/src/starknet_commands/deploy.rs index 6be31bedf5..237ce711a4 100644 --- a/crates/sncast/src/starknet_commands/deploy.rs +++ b/crates/sncast/src/starknet_commands/deploy.rs @@ -2,6 +2,7 @@ use anyhow::{Result, anyhow}; use clap::Args; use conversions::IntoConv; use foundry_ui::UI; +use sncast::helpers::constants::UDC_ADDRESS; use sncast::helpers::fee::{FeeArgs, FeeSettings}; use sncast::helpers::rpc::RpcArgs; use sncast::response::deploy::DeployResponse; @@ -71,7 +72,9 @@ pub async fn deploy( ui: &UI, ) -> Result { let salt = extract_or_generate_salt(salt); - let factory = ContractFactory::new(class_hash, account); + + // TODO(#3628): Use `ContractFactory::new` once new UDC address is the default one in starknet-rs + let factory = ContractFactory::new_with_udc(class_hash, account, UDC_ADDRESS); let deployment = factory.deploy_v3(calldata.clone(), salt, unique);