remove sequence number from coins

This commit is contained in:
Ethan Frey
2017-07-12 19:25:14 +02:00
parent 46345237a1
commit 5950ff34e3
11 changed files with 82 additions and 92 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ func IsUnknownTxTypeErr(err error) bool {
return IsSameError(errUnknownTxType, err)
}
func ErrInvalidFormat(tx interface{}) TMError {
msg := fmt.Sprintf("%T", unwrap(tx))
func ErrInvalidFormat(expected string, tx interface{}) TMError {
msg := fmt.Sprintf("%T not %s", unwrap(tx), expected)
w := errors.Wrap(errInvalidFormat, msg)
return WithCode(w, abci.CodeType_UnknownRequest)
}