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) {
|
|
|
|
addr := sdk.Address("abcd")
|
|
|
|
msg := NewMsgUnrevoke(addr)
|
|
|
|
bytes := msg.GetSignBytes()
|
2018-06-29 18:10:15 -07:00
|
|
|
require.Equal(t, string(bytes), `{"address":"cosmosvaladdr1v93xxeqamr0mv"}`)
|
2018-06-07 17:05:34 -07:00
|
|
|
}
|