public string GetContractType(uint160 addr) { AccountState accountState = this.GetAccountState(addr); return(accountState != null ? accountState.TypeName : string.Empty); }
public byte[] GetCodeHash(uint160 addr) { AccountState accountState = this.GetAccountState(addr); return(accountState != null ? accountState.CodeHash : new byte[0]); // TODO: REPLACE THIS BYTE0 with something }
public byte[] GetStorageValue(uint160 addr, byte[] key) { AccountState accountState = this.GetAccountState(addr); return(accountState == null ? null : this.storageCache.Get(addr.ToBytes()).Get(key)); }