diff --git a/starknet-core/src/serde/byte_array.rs b/starknet-core/src/serde/byte_array.rs index 31c980b6..9d171396 100644 --- a/starknet-core/src/serde/byte_array.rs +++ b/starknet-core/src/serde/byte_array.rs @@ -1,5 +1,5 @@ pub mod base64 { - use alloc::{fmt::Formatter, format}; + use alloc::{fmt::Formatter, format, vec::*}; use base64::{engine::general_purpose::STANDARD, Engine}; use serde::{de::Visitor, Deserializer, Serializer}; diff --git a/starknet-core/src/types/codegen.rs b/starknet-core/src/types/codegen.rs index 5a97fe84..8fec68a1 100644 --- a/starknet-core/src/types/codegen.rs +++ b/starknet-core/src/types/codegen.rs @@ -22,7 +22,7 @@ // - `TXN` // - `TXN_RECEIPT` -use alloc::format; +use alloc::{format, string::*, vec::*}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use serde_with::serde_as; diff --git a/starknet-core/src/types/contract/legacy.rs b/starknet-core/src/types/contract/legacy.rs index 3d552c35..6b3eb797 100644 --- a/starknet-core/src/types/contract/legacy.rs +++ b/starknet-core/src/types/contract/legacy.rs @@ -1,4 +1,4 @@ -use alloc::{collections::BTreeMap, format}; +use alloc::{borrow::*, boxed::*, collections::BTreeMap, format, string::*, vec::*}; use crate::{ crypto::compute_hash_on_elements, diff --git a/starknet-core/src/types/contract/mod.rs b/starknet-core/src/types/contract/mod.rs index 2c26feb1..59724ac5 100644 --- a/starknet-core/src/types/contract/mod.rs +++ b/starknet-core/src/types/contract/mod.rs @@ -1,4 +1,4 @@ -use alloc::format; +use alloc::{format, string::*, vec::*}; use serde::{ser::SerializeSeq, Deserialize, Deserializer, Serialize, Serializer}; use serde_json_pythonic::to_string_pythonic; @@ -242,6 +242,7 @@ pub enum EventFieldKind { } mod errors { + use alloc::string::*; use core::fmt::{Display, Formatter, Result}; #[derive(Debug)] diff --git a/starknet-core/src/types/execution_result.rs b/starknet-core/src/types/execution_result.rs index 10403823..2a757531 100644 --- a/starknet-core/src/types/execution_result.rs +++ b/starknet-core/src/types/execution_result.rs @@ -1,3 +1,5 @@ +use alloc::string::*; + use serde::{Deserialize, Serialize}; use super::TransactionExecutionStatus; diff --git a/starknet-core/src/types/mod.rs b/starknet-core/src/types/mod.rs index 227ce9f0..ec03991c 100644 --- a/starknet-core/src/types/mod.rs +++ b/starknet-core/src/types/mod.rs @@ -1,3 +1,5 @@ +use alloc::{string::*, vec::*}; + use serde::{Deserialize, Serialize}; use serde_with::serde_as; diff --git a/starknet-core/src/types/msg.rs b/starknet-core/src/types/msg.rs index 907dfb2c..f19e98b1 100644 --- a/starknet-core/src/types/msg.rs +++ b/starknet-core/src/types/msg.rs @@ -1,3 +1,5 @@ +use alloc::vec::*; + use sha3::{Digest, Keccak256}; use starknet_ff::FieldElement; diff --git a/starknet-core/src/utils.rs b/starknet-core/src/utils.rs index 25d52a11..ab836ed5 100644 --- a/starknet-core/src/utils.rs +++ b/starknet-core/src/utils.rs @@ -1,3 +1,5 @@ +use alloc::string::*; + use crate::{crypto::compute_hash_on_elements, types::FieldElement}; use sha3::{Digest, Keccak256};