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

Function mustDecodeHashPtr

protocol/bc/block_test.go:297–304  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

295}
296
297func mustDecodeHashPtr(h string) *Hash {
298 var hash Hash
299 err := hash.UnmarshalText([]byte(h))
300 if err != nil {
301 panic(err)
302 }
303 return &hash
304}

Callers 1

TestSignBlockFunction · 0.85

Calls 1

UnmarshalTextMethod · 0.95

Tested by

no test coverage detected