Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Mar 8, 2024
1 parent f78f639 commit 257e5f3
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion starknet-core/src/serde/byte_array.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 1 addition & 1 deletion starknet-core/src/types/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion starknet-core/src/types/contract/legacy.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 2 additions & 1 deletion starknet-core/src/types/contract/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -242,6 +242,7 @@ pub enum EventFieldKind {
}

mod errors {
use alloc::string::*;
use core::fmt::{Display, Formatter, Result};

#[derive(Debug)]
Expand Down
2 changes: 2 additions & 0 deletions starknet-core/src/types/execution_result.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::string::*;

use serde::{Deserialize, Serialize};

use super::TransactionExecutionStatus;
Expand Down
2 changes: 2 additions & 0 deletions starknet-core/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::{string::*, vec::*};

use serde::{Deserialize, Serialize};
use serde_with::serde_as;

Expand Down
2 changes: 2 additions & 0 deletions starknet-core/src/types/msg.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::vec::*;

use sha3::{Digest, Keccak256};
use starknet_ff::FieldElement;

Expand Down
2 changes: 2 additions & 0 deletions starknet-core/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::string::*;

use crate::{crypto::compute_hash_on_elements, types::FieldElement};

use sha3::{Digest, Keccak256};
Expand Down

0 comments on commit 257e5f3

Please sign in to comment.