Skip to content

Commit fb528ed

Browse files
committed
refactor: remove some unnecesary dependencies
1 parent 6db9d5f commit fb528ed

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/revive-types/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ path = "src/lib.rs"
1515

1616
[dependencies]
1717
scale = { workspace = true }
18-
frame-support = { workspace = true }
1918
scale-info = { workspace = true }
2019
serde = { workspace = true, features = ["derive"] }
2120
ink_primitives = { workspace = true }
2221
derive_more = { workspace = true, features = ["from", "try_into"] }
23-
sp-core = { workspace = true }
2422
sp-runtime = { workspace = true }
2523
pallet-revive-uapi = { workspace = true, features = ["scale"] }
2624
alloy-core = { workspace = true, features = ["sol-types"] }
@@ -31,9 +29,7 @@ std = [
3129
"alloy-core/std",
3230
"scale/std",
3331
"scale-info/std",
34-
"frame-support/std",
3532
"ink_primitives/std",
36-
"sp-core/std",
3733
"sp-runtime/std",
3834
"serde/std",
3935
]

crates/revive-types/src/primitives.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
#![cfg_attr(not(feature = "std"), allow(unused_imports))]
1919

2020
use alloc::vec::Vec;
21-
use frame_support::weights::Weight;
22-
use ink_primitives::H160;
21+
use ink_primitives::{
22+
H160,
23+
H256,
24+
Weight,
25+
};
2326
use pallet_revive_uapi::ReturnFlags;
2427
use scale::{
2528
Decode,
@@ -215,7 +218,7 @@ pub struct InstantiateReturnValue {
215218
#[derive(Clone, PartialEq, Eq, Encode, Decode, MaxEncodedLen, RuntimeDebug, TypeInfo)]
216219
pub struct CodeUploadReturnValue<Balance> {
217220
/// The key under which the new code is stored.
218-
pub code_hash: sp_core::H256,
221+
pub code_hash: H256,
219222
/// The deposit that was reserved at the caller. Is zero when the code already
220223
/// existed.
221224
pub deposit: Balance,

0 commit comments

Comments
 (0)