9 "github.com/vapor/protocol/bc"
12 func MustDecodeHash(s string) (h bc.Hash) {
13 if err := h.UnmarshalText([]byte(s)); err != nil {
19 func MustDecodeHexString(s string) []byte {
20 bytes, err := hex.DecodeString(s)
27 func MustDecodeAsset(s string) (h bc.AssetID) {
28 if err := h.UnmarshalText([]byte(s)); err != nil {
34 func Serialize(t *testing.T, wt io.WriterTo) []byte {
36 if _, err := wt.WriteTo(&b); err != nil {