我是在操作系统合约时想到的,比如rpc blockNumber 查询区块高度,或者scm Authorization queryPermission查询用户权限,返回的结果都是16进制的原始值,可读性比较差,尤其是当有个用户权限很多时,如下一长串太不易读了
scm Authorization queryPermissions --account 0x0438bfcabdda99c00acf0039e6c1f3f2d78edde5
{
“id”: 1,
“jsonrpc”: “2.0”,
“result”: “0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ffffffffffffffffffffffffffffffffff021000000000000000000000000000ffffffffffffffffffffffffffffffffff021001”
}
如果能加个-h 参数,输出更易读的结果,就非常直观了,比如:
scm Authorization queryPermissions -h --account 0x0438bfcabdda99c00acf0039e6c1f3f2d78edde5
{
“id”: 1,
“jsonrpc”: “2.0”,
“result”: [“sendTxPermission”, “createContractPermission”]
}
建议开发组考虑下。