MCPcopy Create free account
hub / github.com/DNAProject/DNA / Get

Method Get

smartcontract/storage/cachedb.go:120–122  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

118}
119
120func (self *CacheDB) Get(key []byte) ([]byte, error) {
121 return self.get(common.ST_STORAGE, key)
122}
123
124func (self *CacheDB) get(prefix common.DataEntryPrefix, key []byte) ([]byte, error) {
125 self.keyScratch = makePrefixedKey(self.keyScratch, byte(prefix), key)

Callers 1

TestCacheDBFunction · 0.95

Calls 1

getMethod · 0.95

Tested by 1

TestCacheDBFunction · 0.76