MCPcopy Create free account
hub / github.com/DEROFDN/Engram / AddSCIDToIndex

Method AddSCIDToIndex

functions.go:2042–2047  ·  view source on GitHub ↗

Add a var store only scid to Gnomon DB

(scid string)

Source from the content-addressed store, hash-verified

2040
2041// Add a var store only scid to Gnomon DB
2042func (g *Gnomon) AddSCIDToIndex(scid string) (err error) {
2043 add := make(map[string]*structures.FastSyncImport)
2044 add[scid] = &structures.FastSyncImport{}
2045
2046 return gnomon.Index.AddSCIDToIndex(add, false, true)
2047}
2048
2049// Get the current code of a smart contract
2050func getContractCode(scid string) (code string, err error) {

Callers 2

getContractHeaderFunction · 0.80
layoutTELAFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected