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
- Configure the CLI for
testnet-asimov with a valid account.
- 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.
Description
genlayer staking validator-historythrowsclient.getSlashingAddress is not a functionand fails to return any history. All otherstakingsubcommands work fine on the same account/network, so the bug appears isolated to thevalidator-historycode path.Steps to reproduce
testnet-asimovwith a valid account.Actual result
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, andset-identityall run successfully — onlyvalidator-historyfails.Environment
0.39.1v20.20.2Additional notes
The error suggests the
clientobject is missing agetSlashingAddressmethod — possibly renamed/removed in the underlying SDK, or not wired up for thetestnet-asimovnetwork in thevalidator-historypath.