@@ -43,7 +43,7 @@ use sp_runtime::{
4343 KeyTypeId , Percent , Permill , Perbill , curve:: PiecewiseLinear ,
4444 transaction_validity:: { TransactionValidity , TransactionSource , TransactionPriority } ,
4545 traits:: {
46- BlakeTwo256 , Block as BlockT , OpaqueKeys , ConvertInto , IdentityLookup ,
46+ BlakeTwo256 , Block as BlockT , OpaqueKeys , ConvertInto , AccountIdLookup ,
4747 Extrinsic as ExtrinsicT , SaturatedConversion , Verify ,
4848 } ,
4949} ;
@@ -152,7 +152,7 @@ impl frame_system::Config for Runtime {
152152 type Hash = Hash ;
153153 type Hashing = BlakeTwo256 ;
154154 type AccountId = AccountId ;
155- type Lookup = IdentityLookup < AccountId > ;
155+ type Lookup = AccountIdLookup < AccountId , ( ) > ;
156156 type Header = generic:: Header < BlockNumber , BlakeTwo256 > ;
157157 type Event = Event ;
158158 type BlockHashCount = BlockHashCount ;
@@ -707,6 +707,7 @@ impl<LocalCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for R
707707 account : AccountId ,
708708 nonce : <Runtime as frame_system:: Config >:: Index ,
709709 ) -> Option < ( Call , <UncheckedExtrinsic as ExtrinsicT >:: SignaturePayload ) > {
710+ use sp_runtime:: traits:: StaticLookup ;
710711 // take the biggest period possible.
711712 let period = BlockHashCount :: get ( )
712713 . checked_next_power_of_two ( )
@@ -736,7 +737,8 @@ impl<LocalCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for R
736737 C :: sign ( payload, public)
737738 } ) ?;
738739 let ( call, extra, _) = raw_payload. deconstruct ( ) ;
739- Some ( ( call, ( account, signature, extra) ) )
740+ let address = <Runtime as frame_system:: Config >:: Lookup :: unlookup ( account) ;
741+ Some ( ( call, ( address, signature, extra) ) )
740742 }
741743}
742744
@@ -1026,7 +1028,7 @@ construct_runtime! {
10261028}
10271029
10281030/// The address format for describing accounts.
1029- pub type Address = AccountId ;
1031+ pub type Address = sp_runtime :: MultiAddress < AccountId , ( ) > ;
10301032/// Block header type as expected by this runtime.
10311033pub type Header = generic:: Header < BlockNumber , BlakeTwo256 > ;
10321034/// Block type as expected by this runtime.
0 commit comments