(w io.Writer, suffix []byte, assetVersion uint64)
| 62 | } |
| 63 | |
| 64 | func (sc *SpendCommitment) writeExtensibleString(w io.Writer, suffix []byte, assetVersion uint64) error { |
| 65 | _, err := blockchain.WriteExtensibleString(w, suffix, func(w io.Writer) error { |
| 66 | return sc.writeContents(w, suffix, assetVersion) |
| 67 | }) |
| 68 | return err |
| 69 | } |
| 70 | |
| 71 | func (sc *SpendCommitment) writeContents(w io.Writer, suffix []byte, assetVersion uint64) (err error) { |
| 72 | if assetVersion == 1 { |
no test coverage detected