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

Function serializeStorageKey

smartcontract/service/wasmvm/runtime.go:722–729  ·  view source on GitHub ↗
(contractAddress common.Address, key []byte)

Source from the content-addressed store, hash-verified

720}
721
722func serializeStorageKey(contractAddress common.Address, key []byte) []byte {
723 bf := new(bytes.Buffer)
724
725 bf.Write(contractAddress[:])
726 bf.Write(key)
727
728 return bf.Bytes()
729}

Callers 4

ContractMigrateFunction · 0.85
StorageReadFunction · 0.85
StorageWriteFunction · 0.85
StorageDeleteFunction · 0.85

Calls 2

WriteMethod · 0.80
BytesMethod · 0.45

Tested by

no test coverage detected