File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4444 const IDENTIFIER : & ' static str = "SudoTransactionExtension" ;
4545
4646 type Implicit = ( ) ;
47- type Val = Option < T :: AccountId > ;
47+ type Val = ( ) ;
4848 type Pre = ( ) ;
4949
5050 impl_tx_ext_default ! ( <T as Config >:: RuntimeCall ; weight prepare) ;
6161 ) -> ValidateResult < Self :: Val , <T as Config >:: RuntimeCall > {
6262 // Ensure the transaction is signed, else we just skip the extension.
6363 let Some ( who) = origin. as_system_origin_signer ( ) else {
64- return Ok ( ( Default :: default ( ) , None , origin) ) ;
64+ return Ok ( ( Default :: default ( ) , ( ) , origin) ) ;
6565 } ;
6666
6767 // Check validity of the signer for sudo call
7979 }
8080 }
8181
82- Ok ( ( Default :: default ( ) , Some ( who . clone ( ) ) , origin) )
82+ Ok ( ( Default :: default ( ) , ( ) , origin) )
8383 }
8484}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn sudo_extrinsic(inner: RuntimeCall) -> RuntimeCall {
4141fn validate_ext (
4242 origin : RuntimeOrigin ,
4343 call : & RuntimeCall ,
44- ) -> ValidateResult < Option < AccountId > , RuntimeCall > {
44+ ) -> ValidateResult < ( ) , RuntimeCall > {
4545 let ext = sudo_wrapper:: SudoTransactionExtension :: < Runtime > :: new ( ) ;
4646
4747 ext. validate (
You can’t perform that action at this time.
0 commit comments