Skip to content

Commit 7192b06

Browse files
committed
Fixed warnings
1 parent f5e670e commit 7192b06

File tree

1 file changed

+3
-7
lines changed
  • runtimes/bulletin-polkadot/tests

1 file changed

+3
-7
lines changed

runtimes/bulletin-polkadot/tests/tests.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
use bulletin_polkadot_runtime as runtime;
2-
use frame_support::{assert_ok, assert_noop};
3-
use frame_support::traits::{Hooks, OnIdle};
2+
use frame_support::assert_ok;
3+
use frame_support::traits::Hooks;
44
use pallet_transaction_storage::{Call as TxCall, AuthorizationExtent, BAD_DATA_SIZE};
55
use frame_support::dispatch::GetDispatchInfo;
66
use sp_core::{Pair, Encode};
7-
use runtime::{RuntimeOrigin, AllPalletsWithSystem, Weight, TransactionStorage, System, Runtime, BuildStorage, RuntimeCall, UncheckedExtrinsic, TxExtension, SignedPayload, Executive, Hash, Header};
7+
use runtime::{RuntimeOrigin, System, Runtime, BuildStorage, RuntimeCall, UncheckedExtrinsic, TxExtension, SignedPayload, Executive, Hash, Header};
88
use sp_runtime::generic::Era;
99
use sp_runtime::traits::Header as _;
1010
use sp_runtime::traits::SaturatedConversion;
11-
use sp_runtime::traits::Dispatchable;
1211
use sp_keyring::Sr25519Keyring;
1312
use sp_runtime::ApplyExtrinsicResult;
14-
use sp_transaction_storage_proof::TransactionStorageProof;
1513
use pallet_transaction_storage::DEFAULT_MAX_TRANSACTION_SIZE;
1614

1715
fn advance_block() {
@@ -89,7 +87,6 @@ fn transaction_storage_runtime_sizes() {
8987
let now = slot.saturated_into::<u64>() * runtime::SLOT_DURATION;
9088
runtime::Timestamp::set(RuntimeOrigin::none(), now).unwrap();
9189

92-
let mut block_number: u32 = 1;
9390

9491
let who: runtime::AccountId = sp_keyring::Sr25519Keyring::Alice.to_account_id();
9592
let sizes: [usize; 5] = [
@@ -118,7 +115,6 @@ fn transaction_storage_runtime_sizes() {
118115
let res = construct_and_apply_extrinsic(alice_pair.clone(), call);
119116
assert!(res.is_ok(), "Failed at size={} bytes: {:?}", size, res);
120117

121-
block_number += 1;
122118
advance_block();
123119
}
124120

0 commit comments

Comments
 (0)