Skip to content

Commit

Permalink
chore: Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Aug 13, 2024
1 parent b887a0c commit 8121719
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions x/supplier/config/supplier_configs_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
_ "github.com/pokt-network/poktroll/pkg/polylog/polyzero"
sharedhelpers "github.com/pokt-network/poktroll/x/shared/helpers"
sharedtypes "github.com/pokt-network/poktroll/x/shared/types"
"github.com/pokt-network/poktroll/x/supplier/types"
)

// YAMLStakeConfig is the structure describing the supplier stake config file.
Expand Down Expand Up @@ -46,19 +45,6 @@ type SupplierStakeConfig struct {
Services []*sharedtypes.SupplierServiceConfig
}

// EnsureOwner ensures that the config owner address matches the provided address.
func (cfg *SupplierStakeConfig) EnsureOwner(ownerAddress string) error {
if cfg.OwnerAddress != ownerAddress {
return types.ErrSupplierInvalidAddress.Wrapf(
"owner address %q in the stake config file does not match the address provided %q",
cfg.OperatorAddress,
ownerAddress,
)
}

return nil
}

// ParseSupplierServiceConfig parses the stake config file into a SupplierServiceConfig.
func ParseSupplierConfigs(ctx context.Context, configContent []byte) (*SupplierStakeConfig, error) {
var stakeConfig *YAMLStakeConfig
Expand Down

0 comments on commit 8121719

Please sign in to comment.