removed circular dependency

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-10-10 01:48:15 +02:00
parent a0d4a9a575
commit 0835ab4b46
No known key found for this signature in database
2 changed files with 10 additions and 4 deletions

View File

@ -3,11 +3,18 @@ package types
import (
"testing"
"github.com/cometbft/cometbft/crypto/ed25519"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/planetmint/planetmint-go/testutil/sample"
"github.com/stretchr/testify/require"
)
func AccAddress() string {
pk := ed25519.GenPrivKey().PubKey()
addr := pk.Address()
return sdk.AccAddress(addr).String()
}
func TestMsgReissueRDDLProposal_ValidateBasic(t *testing.T) {
tests := []struct {
name string
@ -23,7 +30,7 @@ func TestMsgReissueRDDLProposal_ValidateBasic(t *testing.T) {
}, {
name: "valid address",
msg: MsgReissueRDDLProposal{
Creator: sample.AccAddress(),
Creator: AccAddress(),
},
},
}

View File

@ -4,7 +4,6 @@ import (
"testing"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/planetmint/planetmint-go/testutil/sample"
"github.com/stretchr/testify/require"
)
@ -23,7 +22,7 @@ func TestMsgReissueRDDLResult_ValidateBasic(t *testing.T) {
}, {
name: "valid address",
msg: MsgReissueRDDLResult{
Creator: sample.AccAddress(),
Creator: AccAddress(),
},
},
}