Skip to content

Commit d68a614

Browse files
pepyakinrphmeier
authored andcommitted
chore: fixes some things on main
1 parent 2f5d406 commit d68a614

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sugondat-chain/pallets/blobs/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1212
[dependencies]
1313
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"], default-features = false }
1414
scale-info = { version = "2.2.0", default-features = false, features = ["derive"] }
15+
sha2 = { version = "0.10.6", default-features = false }
1516

1617
# Substrate
1718
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, optional = true, branch = "release-polkadot-v1.2.0" }
@@ -21,8 +22,10 @@ sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features
2122
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.2.0" }
2223
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.2.0", optional = true}
2324

25+
# Local
26+
sugondat-primitives = { path = "../../primitives", default-features = false }
27+
2428
sugondat-nmt = { path = "../../../sugondat-nmt", default-features = false }
25-
sha2 = { version = "0.10.6", default-features = false }
2629

2730
[dev-dependencies]
2831
serde = { version = "1.0.132" }
@@ -31,9 +34,6 @@ sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features =
3134
# Substrate
3235
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.2.0" }
3336

34-
# Local
35-
sugondat-primitives = { path = "../../primitives", default-features = false }
36-
3737
[features]
3838
default = ["std"]
3939
runtime-benchmarks = [

sugondat-chain/pallets/blobs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ where
315315
// It will not be valid unless the configured limit is increased by governance,
316316
// which is a rare event.
317317
return Err(InvalidTransaction::Custom(
318-
InvalidTransactionCustomError::BlobExceedsSizeLimit,
318+
InvalidTransactionCustomError::BlobExceedsSizeLimit as u8,
319319
)
320320
.into());
321321
}

sugondat-chain/runtimes/sugondat-kusama/src/constants.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ pub mod kusama {
136136
#[cfg(test)]
137137
mod tests {
138138
// compile-test: ensure that the balance type used by Kusama matches the one used here.
139+
#[test]
139140
fn balance_type_matches() {
140141
assert_eq!(
141142
std::any::TypeId::of::<crate::Balance>(),

sugondat-chain/runtimes/sugondat-kusama/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub type SignedExtra = (
8989
frame_system::CheckNonce<Runtime>,
9090
frame_system::CheckWeight<Runtime>,
9191
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
92-
pallet_sugondat_blobs::PrevalidateBlobs,
92+
pallet_sugondat_blobs::PrevalidateBlobs<Runtime>,
9393
);
9494

9595
/// Unchecked extrinsic type as expected by this runtime.

sugondat-chain/runtimes/test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub type SignedExtra = (
9090
frame_system::CheckNonce<Runtime>,
9191
frame_system::CheckWeight<Runtime>,
9292
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
93-
pallet_sugondat_blobs::PrevalidateBlobs,
93+
pallet_sugondat_blobs::PrevalidateBlobs<Runtime>,
9494
);
9595

9696
/// Unchecked extrinsic type as expected by this runtime.

0 commit comments

Comments
 (0)