diff --git a/frame/ethereum/src/lib.rs b/frame/ethereum/src/lib.rs index 508cadfdd9..8a08491729 100644 --- a/frame/ethereum/src/lib.rs +++ b/frame/ethereum/src/lib.rs @@ -820,6 +820,7 @@ impl Pallet { Ok((Some(target), None, CallOrCreateInfo::Call(res))) } ethereum::TransactionAction::Create => { + let whitelist = pallet_evm::WhitelistedCreators::::get(); let res = match T::Runner::create( from, input, @@ -829,6 +830,7 @@ impl Pallet { max_priority_fee_per_gas, nonce, access_list, + whitelist, is_transactional, validate, weight_limit, diff --git a/template/runtime/src/lib.rs b/template/runtime/src/lib.rs index 27e0611c8f..4530922379 100644 --- a/template/runtime/src/lib.rs +++ b/template/runtime/src/lib.rs @@ -924,6 +924,7 @@ impl_runtime_apis! { _ => (None, None), }; + let whitelist = pallet_evm::WhitelistedCreators::::get(); ::Runner::create( from, data, @@ -933,6 +934,7 @@ impl_runtime_apis! { max_priority_fee_per_gas, nonce, access_list.unwrap_or_default(), + whitelist, false, true, weight_limit,