Description
cardano-cli query stake-address-info renders the address field in its output using the stake_test1 bech32 prefix even when querying a mainnet address.
Steps to reproduce
cardano-cli query stake-address-info \
--mainnet \
--address stake1u85was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcvaj7xm
Actual output
[
{
"address": "stake_test1ur5was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcthcuzx",
...
}
]
The address field uses the stake_test1 prefix, which is incorrect for a mainnet address.
Expected output
The address field should use the stake1 prefix, matching the network of the query:
[
{
"address": "stake1u85was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcvaj7xm",
...
}
]
Notes
The input address (stake1u...) is correctly recognised as a mainnet address and the query succeeds. Only the rendered output address uses the wrong prefix. The underlying stake credential is identical in both cases.
Description
cardano-cli query stake-address-inforenders theaddressfield in its output using thestake_test1bech32 prefix even when querying a mainnet address.Steps to reproduce
Actual output
[ { "address": "stake_test1ur5was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcthcuzx", ... } ]The
addressfield uses thestake_test1prefix, which is incorrect for a mainnet address.Expected output
The
addressfield should use thestake1prefix, matching the network of the query:[ { "address": "stake1u85was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcvaj7xm", ... } ]Notes
The input address (
stake1u...) is correctly recognised as a mainnet address and the query succeeds. Only the rendered output address uses the wrong prefix. The underlying stake credential is identical in both cases.