MCPcopy Create free account
hub / github.com/chain/Core / mustDecodeHex

Function mustDecodeHex

protocol/block_test.go:263–269  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

261}
262
263func mustDecodeHex(s string) []byte {
264 data, err := hex.DecodeString(s)
265 if err != nil {
266 panic(err)
267 }
268 return data
269}
270
271func mustDecodeHash(s string) (h bc.Hash) {
272 err := h.UnmarshalText([]byte(s))

Callers 1

TestGenerateBlockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected