MCPcopy Create free account
hub / github.com/copernet/copernicus / hexToBytes

Function hexToBytes

model/script/scriptnum_test.go:11–17  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

9)
10
11func hexToBytes(s string) []byte {
12 b, err := hex.DecodeString(s)
13 if err != nil {
14 panic("invalid hex in source file: " + s)
15 }
16 return b
17}
18
19func TestGetScriptNum(t *testing.T) {
20 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected