Fix name: MustTransactionFromDecoder
This commit is contained in:
parent
ed736e9156
commit
66087f5c99
2
types.go
2
types.go
|
@ -312,7 +312,7 @@ func TransactionFromDecoder(decoder *bin.Decoder) (*Transaction, error) {
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func MustTransactionFromData(decoder *bin.Decoder) *Transaction {
|
||||
func MustTransactionFromDecoder(decoder *bin.Decoder) *Transaction {
|
||||
out, err := TransactionFromDecoder(decoder)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Reference in New Issue