mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
removed circular dependency
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
a0d4a9a575
commit
0835ab4b46
@ -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(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -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(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user