git.delta.rocks / unique-network / refs/commits / b81a3fd19b28

difftreelog

fix missing account_code_at impl

Yaroslav Bolyukin2023-01-12parent: #3baf298.patch.diff
in: master

1 file changed

modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
451 }451 }
452452
453 fn account_code_at(address: H160) -> Vec<u8> {453 fn account_code_at(address: H160) -> Vec<u8> {
454 use pallet_evm::OnMethodCall;
455 <Runtime as pallet_evm::Config>::OnMethodCall::get_code(&address)
454 EVM::account_codes(address)456 .unwrap_or_else(|| EVM::account_codes(address))
455 }457 }
456458
457 fn author() -> H160 {459 fn author() -> H160 {