Skip to content

Commit 8bd4b64

Browse files
Support new UDC (#3632)
<!-- Reference any GitHub issues resolved by this PR --> Closes #3538 ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md` --------- Co-authored-by: Dariusz Doktorski <[email protected]>
1 parent 9f03c43 commit 8bd4b64

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
#### Changed
2626

2727
- The supported RPC version is now 0.9.0
28+
- [New UDC](https://starkscan.co/contract/0x02ceed65a4bd731034c01113685c831b01c15d7d432f71afb1cf1634b53a2125) is now used during deployment
2829

2930
## [0.48.1] - 2025-08-14
3031

crates/sncast/src/helpers/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs = []
1616
"#;
1717

1818
pub const UDC_ADDRESS: Felt =
19-
felt!("0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf");
19+
felt!("0x02ceed65a4bd731034c01113685c831b01c15d7d432f71afb1cf1634b53a2125");
2020
pub const OZ_CLASS_HASH: Felt =
2121
felt!("0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564"); // v1.0.0
2222
pub const READY_CLASS_HASH: Felt =

crates/sncast/src/starknet_commands/deploy.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use anyhow::{Result, anyhow};
22
use clap::Args;
33
use conversions::IntoConv;
44
use foundry_ui::UI;
5+
use sncast::helpers::constants::UDC_ADDRESS;
56
use sncast::helpers::fee::{FeeArgs, FeeSettings};
67
use sncast::helpers::rpc::RpcArgs;
78
use sncast::response::deploy::DeployResponse;
@@ -71,7 +72,9 @@ pub async fn deploy(
7172
ui: &UI,
7273
) -> Result<DeployResponse, StarknetCommandError> {
7374
let salt = extract_or_generate_salt(salt);
74-
let factory = ContractFactory::new(class_hash, account);
75+
76+
// TODO(#3628): Use `ContractFactory::new` once new UDC address is the default one in starknet-rs
77+
let factory = ContractFactory::new_with_udc(class_hash, account, UDC_ADDRESS);
7578

7679
let deployment = factory.deploy_v3(calldata.clone(), salt, unique);
7780

0 commit comments

Comments
 (0)