MCPcopy Create free account
hub / github.com/chain/txvm / extractTypeCode

Function extractTypeCode

protocol/txvm/entries.go:159–165  ·  view source on GitHub ↗
(t Tuple)

Source from the content-addressed store, hash-verified

157}
158
159func extractTypeCode(t Tuple) byte {
160 code, ok := t[0].(Bytes)
161 if !ok || len(code) != 1 {
162 return 0
163 }
164 return code[0]
165}

Callers 2

uninspectMethod · 0.85
uninspectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected