diff --git a/x/multi-staking/types/key.go b/x/multi-staking/types/key.go index 244a5e10..338a50fb 100644 --- a/x/multi-staking/types/key.go +++ b/x/multi-staking/types/key.go @@ -86,7 +86,6 @@ func DelAddrAndValAddrFromUnlockID(unlockIDByte []byte) (multiStakerAddr sdk.Acc func (l LockID) ToByte() []byte { bz, err := json.Marshal(l) - if err != nil { panic("can not Marshal") } @@ -95,7 +94,6 @@ func (l LockID) ToByte() []byte { func (l UnlockID) ToByte() []byte { bz, err := json.Marshal(l) - if err != nil { panic("can not Marshal") } diff --git a/x/multi-staking/types/key_test.go b/x/multi-staking/types/key_test.go index a65e2d36..0970eb07 100644 --- a/x/multi-staking/types/key_test.go +++ b/x/multi-staking/types/key_test.go @@ -3,10 +3,9 @@ package types_test import ( "testing" - "github.com/stretchr/testify/require" - "github.com/realio-tech/multi-staking-module/testutil" mulStakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types" + "github.com/stretchr/testify/require" ) func TestDelAddrAndValAddrFromLockID(t *testing.T) {