Skip to content

Commit 8904afa

Browse files
committed
changes after rebase
1 parent 48ce2e4 commit 8904afa

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

runtime/mainnet/src/config/revive.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl pallet_revive::Config for Runtime {
3232
type DepositPerByte = DepositPerByte;
3333
type DepositPerItem = DepositPerItem;
3434
type EthGasEncoder = ();
35+
type FindAuthor = <Runtime as pallet_authorship::Config>::FindAuthor;
3536
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
3637
// 1 ETH : 1_000_000 UNIT
3738
type NativeToEthRatio = NativeToEthRatio;
@@ -70,6 +71,7 @@ mod tests {
7071
use pallet_revive::Config;
7172

7273
use super::*;
74+
use crate::Aura;
7375

7476
// 18 decimals
7577
const ONE_ETH: u128 = 1_000_000_000_000_000_000;
@@ -124,6 +126,14 @@ mod tests {
124126
assert_eq!(<<Runtime as Config>::DepositPerItem as Get<Balance>>::get(), deposit(1, 0),);
125127
}
126128

129+
#[test]
130+
fn finds_block_author_via_index_from_digests_within_block_header() {
131+
assert_eq!(
132+
TypeId::of::<<Runtime as Config>::FindAuthor>(),
133+
TypeId::of::<pallet_session::FindAccountFromAuthorIndex<Runtime, Aura>>(),
134+
);
135+
}
136+
127137
#[test]
128138
fn ensure_eth_gas_encoder() {
129139
assert_eq!(TypeId::of::<<Runtime as Config>::EthGasEncoder>(), TypeId::of::<()>(),);

runtime/testnet/src/config/contracts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl pallet_revive::Config for Runtime {
101101
type DepositPerByte = DepositPerByte;
102102
type DepositPerItem = DepositPerItem;
103103
type EthGasEncoder = ();
104+
type FindAuthor = <Runtime as pallet_authorship::Config>::FindAuthor;
104105
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
105106
// 1 ETH : 1_000_000 UNIT
106107
type NativeToEthRatio = NativeToEthRatio;

0 commit comments

Comments
 (0)