2018-06-07 17:05:34 -07:00
|
|
|
package slashing
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2018-06-29 18:10:15 -07:00
|
|
|
"github.com/stretchr/testify/require"
|
2018-06-07 17:05:34 -07:00
|
|
|
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMsgUnrevokeGetSignBytes(t *testing.T) {
|
2018-07-06 00:06:53 -07:00
|
|
|
addr := sdk.AccAddress("abcd")
|
2018-06-07 17:05:34 -07:00
|
|
|
msg := NewMsgUnrevoke(addr)
|
|
|
|
bytes := msg.GetSignBytes()
|
2018-07-09 00:29:09 -07:00
|
|
|
require.Equal(t, string(bytes), `{"address":"cosmosaccaddr1v93xxeqhyqz5v"}`)
|
2018-06-07 17:05:34 -07:00
|
|
|
}
|