Skip to content

Commit

Permalink
Fix extrinsic failure issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush committed Dec 1, 2021
1 parent 132fd48 commit 401c1a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use sp_runtime::{
generic,
impl_opaque_keys,
traits::{
AccountIdLookup,
BlakeTwo256,
Block as BlockT,
IdentityLookup,
Expand Down Expand Up @@ -106,6 +107,7 @@ pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
pub use sp_runtime::{
MultiAddress,
Perbill,
Percent,
Permill,
Expand Down Expand Up @@ -285,7 +287,7 @@ impl frame_system::Config for Runtime {
/// The index type for storing how many extrinsics an account has signed.
type Index = Index;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = IdentityLookup<AccountId>;
type Lookup = AccountIdLookup<AccountId, ()>;
/// The maximum weight that a single extrinsic of `Normal` dispatch class can have,
/// idependent of the logic of that extrinsics. (Roughly max block weight - average on
/// initialize cost).
Expand Down Expand Up @@ -1054,7 +1056,7 @@ construct_runtime!(
);

/// The address format for describing accounts.
pub type Address = AccountId;
pub type Address = MultiAddress<AccountId, ()>;
/// Block header type as expected by this runtime.
pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
/// Block type as expected by this runtime.
Expand Down

0 comments on commit 401c1a0

Please sign in to comment.