public IEnumerable <Contract> FindExports(Type contractType) { if (Contracts.ContainsKey(contractType)) { return(Contracts[contractType]); } else { return(Enumerable.Empty <Contract>()); } }
public bool TryResolveContractReference(string reference, out string address) { if (Contracts.ContainsKey(reference)) { address = Contracts[reference].ContractAddress; return(true); } if (EthAddressParser.ValidateAddress(reference)) { address = reference; return(true); } address = null; return(false); }