fix: remove default validator address

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2024-09-25 16:33:27 +02:00
parent 034bd2e8db
commit 73e48c4ed7
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A
2 changed files with 11 additions and 9 deletions

View File

@ -55,7 +55,6 @@ func DefaultConfig() *Config {
MqttTLS: true, MqttTLS: true,
IssuerHost: "https://testnet-issuer.rddl.io", IssuerHost: "https://testnet-issuer.rddl.io",
CertsPath: "./certs/", CertsPath: "./certs/",
validatorAddress: "plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
} }
} }

View File

@ -11,6 +11,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/planetmint/planetmint-go/clients" "github.com/planetmint/planetmint-go/clients"
"github.com/planetmint/planetmint-go/config"
"github.com/planetmint/planetmint-go/testutil/keeper" "github.com/planetmint/planetmint-go/testutil/keeper"
clientmocks "github.com/planetmint/planetmint-go/testutil/mocks" clientmocks "github.com/planetmint/planetmint-go/testutil/mocks"
"github.com/planetmint/planetmint-go/testutil/moduleobject" "github.com/planetmint/planetmint-go/testutil/moduleobject"
@ -50,6 +51,8 @@ func TestRegisterNFT(t *testing.T) {
} }
func TestMachineNFTIssuance(t *testing.T) { func TestMachineNFTIssuance(t *testing.T) {
cfg := config.GetConfig()
cfg.SetValidatorAddress("plmnt10mq5nj8jhh27z7ejnz2ql3nh0qhzjnfvy50877")
ctrl := gomock.NewController(t) ctrl := gomock.NewController(t)
elements.Client = &elementsmocks.MockClient{} elements.Client = &elementsmocks.MockClient{}
shamirMock := clientmocks.NewMockIShamirCoordinatorClient(ctrl) shamirMock := clientmocks.NewMockIShamirCoordinatorClient(ctrl)