The Description
struct defined here:
https://github.com/cosmos/evm/blob/main/precompiles/staking/StakingI.sol#L28-L34
is only used when creating new validator
The queries only return a string description
(corresponding to Description.details
field), here:
https://github.com/cosmos/evm/blob/main/precompiles/staking/StakingI.sol#L51-L63
I think that the staking precompile should be changed to return the same Description struct from queries such as validator
and validators
.