Пример #1
0
        public string GetContractType(uint160 addr)
        {
            AccountState accountState = this.GetAccountState(addr);

            return(accountState != null ? accountState.TypeName : string.Empty);
        }
Пример #2
0
        public byte[] GetCodeHash(uint160 addr)
        {
            AccountState accountState = this.GetAccountState(addr);

            return(accountState != null ? accountState.CodeHash : new byte[0]); // TODO: REPLACE THIS BYTE0 with something
        }
Пример #3
0
        public byte[] GetStorageValue(uint160 addr, byte[] key)
        {
            AccountState accountState = this.GetAccountState(addr);

            return(accountState == null ? null : this.storageCache.Get(addr.ToBytes()).Get(key));
        }