File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1595,15 +1595,15 @@ impl pallet_evm_account_mapping::Config for Runtime {
1595
1595
1596
1596
impl pallet_evm_chain_id:: Config for Runtime { }
1597
1597
1598
- pub struct TruncatedTreasuryAsAuthor ;
1599
- impl FindAuthor < H160 > for TruncatedTreasuryAsAuthor {
1598
+ pub struct FindAuthorTruncated ;
1599
+ impl FindAuthor < H160 > for FindAuthorTruncated {
1600
1600
fn find_author < ' a , I > ( _digests : I ) -> Option < H160 >
1601
1601
where
1602
1602
I : ' a + IntoIterator < Item = ( ConsensusEngineId , & ' a [ u8 ] ) > ,
1603
1603
{
1604
- let treasury = Treasury :: account_id ( ) ;
1605
- let raw_auth_id: & [ u8 ] = treasury . as_ref ( ) ;
1606
- return Some ( H160 :: from_slice ( & raw_auth_id[ ..20 ] ) ) ;
1604
+ let author = Authorship :: author ( ) ? ;
1605
+ let raw_auth_id: & [ u8 ] = author . as_ref ( ) ;
1606
+ Some ( H160 :: from_slice ( & raw_auth_id[ ..20 ] ) )
1607
1607
}
1608
1608
}
1609
1609
@@ -1669,7 +1669,7 @@ impl pallet_evm::Config for Runtime {
1669
1669
type Runner = pallet_evm:: runner:: stack:: Runner < Self > ;
1670
1670
type OnChargeTransaction = EvmDealWithFees ;
1671
1671
type OnCreate = ( ) ;
1672
- type FindAuthor = TruncatedTreasuryAsAuthor ;
1672
+ type FindAuthor = FindAuthorTruncated ;
1673
1673
type GasLimitPovSizeRatio = GasLimitPovSizeRatio ;
1674
1674
type SuicideQuickClearLimit = SuicideQuickClearLimit ;
1675
1675
type Timestamp = Timestamp ;
You can’t perform that action at this time.
0 commit comments