sort *all* GetSignBytes:
- call MustSortJSON before return JSON bytes to guarantee alphabetic ordering - moved SortJSON and MustSortJSON to types package to avoid cyclic package dep
This commit is contained in:
@@ -27,7 +27,7 @@ func (tx kvstoreTx) GetMemo() string {
|
||||
}
|
||||
|
||||
func (tx kvstoreTx) GetSignBytes() []byte {
|
||||
return tx.bytes
|
||||
return sdk.MustSortJSON(tx.bytes)
|
||||
}
|
||||
|
||||
// Should the app be calling this? Or only handlers?
|
||||
|
||||
Reference in New Issue
Block a user