Beispiel #1
0
        private ContractState GetHistoricalContractState(MPTTrie <StorageKey, StorageItem> trie, UInt160 script_hash)
        {
            const byte prefix = 8;
            StorageKey skey   = new KeyBuilder(NativeContract.ContractManagement.Id, prefix).Add(script_hash);

            return(trie.TryGetValue(skey, out var value) ? value.GetInteroperable <ContractState>() : null);
        }