From b81a3fd19b28c146c2d3a09c92dd53f0fb9b4434 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 12 Jan 2023 16:34:39 +0000 Subject: [PATCH] fix: missing account_code_at impl --- --- a/runtime/common/runtime_apis.rs +++ b/runtime/common/runtime_apis.rs @@ -451,7 +451,9 @@ } fn account_code_at(address: H160) -> Vec { - EVM::account_codes(address) + use pallet_evm::OnMethodCall; + ::OnMethodCall::get_code(&address) + .unwrap_or_else(|| EVM::account_codes(address)) } fn author() -> H160 { -- gitstuff