Skip to content

[Bug] staking validator-history fails: "client.getSlashingAddress is not a function" #341

@Tobu8888

Description

@Tobu8888

Description

genlayer staking validator-history throws client.getSlashingAddress is not a function and fails to return any history. All other staking subcommands work fine on the same account/network, so the bug appears isolated to the validator-history code path.

Steps to reproduce

  1. Configure the CLI for testnet-asimov with a valid account.
  2. Run:
    genlayer staking validator-history --validator 0x9f50DDcd4Af137E14467232490035F13D67998C0

Actual result

⠸ Fetching validator history...
Error:
        client.getSlashingAddress is not a function
✖ Failed to get validator history

Expected result

Returns the validator's slash/reward history (default: last 10 epochs).

Works fine on the same account/network (isolates the bug)

validator-info, epoch-info, active-validators, set-operator, and set-identity all run successfully — only validator-history fails.

Environment

  • genlayer-cli: 0.39.1
  • Network: testnet-asimov (Asimov Phase 5)
  • OS: Linux x86_64
  • Node.js: v20.20.2

Additional notes

The error suggests the client object is missing a getSlashingAddress method — possibly renamed/removed in the underlying SDK, or not wired up for the testnet-asimov network in the validator-history path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions