import { Address } from 'web3x/address' ; import { WorldState } from '../world/world-state' ; export async function getAccountCode ( worldState , address ) { const account = await worldState . loadImmutableAccount ( address ) ; return account ? account . code : Buffer . of ( ) ; }