Skip to content

Commit b2532be

Browse files
Fix structure of utils responses (#3831)
<!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [ ] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md`
1 parent acded0d commit b2532be

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

crates/sncast/src/response/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub mod account;
22
pub mod call;
33
pub mod cast_message;
4-
pub mod class_hash;
54
pub mod command;
65
pub mod declare;
76
pub mod deploy;
@@ -10,8 +9,8 @@ pub mod explorer_link;
109
pub mod invoke;
1110
pub mod multicall;
1211
pub mod script;
13-
pub mod serialize;
1412
pub mod show_config;
1513
pub mod transformed_call;
1614
pub mod tx_status;
15+
pub mod utils;
1716
pub mod verify;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod class_hash;
2+
pub mod serialize;

crates/sncast/src/response/serialize.rs renamed to crates/sncast/src/response/utils/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use super::command::CommandResponse;
21
use crate::response::cast_message::SncastCommandMessage;
32
use crate::response::cast_message::SncastMessage;
3+
use crate::response::command::CommandResponse;
44
use conversions::serde::serialize::CairoSerialize;
55
use foundry_ui::styling;
66
use serde::{Deserialize, Serialize};

crates/sncast/src/starknet_commands/utils/class_hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use conversions::{IntoConv, byte_array::ByteArray};
44
use scarb_api::StarknetContractArtifacts;
55
use sncast::{
66
ErrorData,
7-
response::{class_hash::ClassHashResponse, errors::StarknetCommandError},
7+
response::{errors::StarknetCommandError, utils::class_hash::ClassHashResponse},
88
};
99
use starknet::core::types::contract::SierraClass;
1010
use std::collections::HashMap;

crates/sncast/src/starknet_commands/utils/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use foundry_ui::UI;
66
use sncast::{
77
get_class_hash_by_address, get_contract_class,
88
helpers::{configuration::CastConfig, rpc::RpcArgs},
9-
response::{errors::StarknetCommandError, serialize::SerializeResponse},
9+
response::{errors::StarknetCommandError, utils::serialize::SerializeResponse},
1010
};
1111
use starknet::core::{
1212
types::{ContractClass, contract::AbiEntry},

0 commit comments

Comments
 (0)