mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-07-03 03:12: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 (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/cometbft/cometbft/crypto/ed25519"
|
||||||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
|
||||||
"github.com/stretchr/testify/require"
|
"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) {
|
func TestMsgReissueRDDLProposal_ValidateBasic(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
@ -23,7 +30,7 @@ func TestMsgReissueRDDLProposal_ValidateBasic(t *testing.T) {
|
|||||||
}, {
|
}, {
|
||||||
name: "valid address",
|
name: "valid address",
|
||||||
msg: MsgReissueRDDLProposal{
|
msg: MsgReissueRDDLProposal{
|
||||||
Creator: sample.AccAddress(),
|
Creator: AccAddress(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ func TestMsgReissueRDDLResult_ValidateBasic(t *testing.T) {
|
|||||||
}, {
|
}, {
|
||||||
name: "valid address",
|
name: "valid address",
|
||||||
msg: MsgReissueRDDLResult{
|
msg: MsgReissueRDDLResult{
|
||||||
Creator: sample.AccAddress(),
|
Creator: AccAddress(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user