fix: undefined: sample.Machine

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2024-03-05 15:20:26 +01:00
parent caa795e5f7
commit 8db9d370af
No known key found for this signature in database
GPG Key ID: E0A8F9AD733499A7

View File

@ -6,6 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/planetmint/planetmint-go/testutil/keeper" "github.com/planetmint/planetmint-go/testutil/keeper"
"github.com/planetmint/planetmint-go/testutil/moduleobject"
"github.com/planetmint/planetmint-go/testutil/sample" "github.com/planetmint/planetmint-go/testutil/sample"
"github.com/planetmint/planetmint-go/util" "github.com/planetmint/planetmint-go/util"
"github.com/planetmint/planetmint-go/util/mocks" "github.com/planetmint/planetmint-go/util/mocks"
@ -33,7 +34,7 @@ func TestMachineNFTIssuance(t *testing.T) {
util.RegisterAssetServiceHTTPClient = &mocks.MockClient{} util.RegisterAssetServiceHTTPClient = &mocks.MockClient{}
_, ctx := keeper.MachineKeeper(t) _, ctx := keeper.MachineKeeper(t)
sk, pk := sample.KeyPair() sk, pk := sample.KeyPair()
machine := sample.Machine(pk, pk, sk, "") machine := moduleobject.Machine(pk, pk, sk, "")
goCtx := sdk.WrapSDKContext(ctx) goCtx := sdk.WrapSDKContext(ctx)
err := util.IssueMachineNFT(goCtx, &machine, "https", "testnet-asset.rddl.io", "/register_asset") err := util.IssueMachineNFT(goCtx, &machine, "https", "testnet-asset.rddl.io", "/register_asset")