sort all relevant GetSignBytes:

- call SortJSON before return JSON bytes to guarantee alphabetic
ordering
This commit is contained in:
Liamsi
2018-07-06 00:23:12 +01:00
parent d84ed7c565
commit 0f1ceb073e
5 changed files with 66 additions and 2 deletions
+5
View File
@@ -3,6 +3,7 @@ package auth
import (
"encoding/json"
"github.com/cosmos/cosmos-sdk/server"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tendermint/tendermint/crypto"
)
@@ -141,6 +142,10 @@ func StdSignBytes(chainID string, accnum int64, sequence int64, fee StdFee, msgs
if err != nil {
panic(err)
}
bz, err = server.SortJSON(bz)
if err != nil {
panic(err)
}
return bz
}