sort all relevant GetSignBytes:
- call SortJSON before return JSON bytes to guarantee alphabetic ordering
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user