git.delta.rocks / unique-network / refs/commits / 6bfc1ca502da

difftreelog

Return contract code for contract helper

Greg Zaitsev2021-11-01parent: #cadd585.patch.diff
in: master

1 file changed

modifiedruntime/src/lib.rsdiffbeforeafterboth
970 for Runtime970 for Runtime
971 {971 {
972 fn eth_contract_code(account: H160) -> Option<Vec<u8>> {972 fn eth_contract_code(account: H160) -> Option<Vec<u8>> {
973 <pallet_nft::NftErcSupport<Runtime>>::get_code(&account)973 <pallet_nft::NftErcSupport<Runtime>>::get_code(&account).or_else(|| <pallet_evm_migration::OnMethodCall<Runtime>>::get_code(&account)).or_else(|| <pallet_evm_contract_helpers::HelpersOnMethodCall<Self>>::get_code(&account))
974 }974 }
975 }975 }
976976