1、getLocalPermissions()逻辑相同
/**
* 获取账户本地权限组
* @param walletTable 钱包
* @return permissions 该账号的权限信息 publicKey|perm_name|weight
*/
private fun getLocalPermissions(walletTable: WalletTable): List<Triple<String, String, String>> {
val permissions = ArrayList<Triple<String, String, String>>()
val walletDatas = walletTable.queryWalletData()
walletDatas.forEach {
permissions.add(Triple(it.address, it.permission, it.weight))
}
return permissions
}
/**
* 获取账户本地权限组
* @param walletTable 钱包
* @return permissions 该账号的权限信息 publicKey|perm_name|weight
*/
private fun getLocalPermissions(walletTable: WalletTable) = walletTable.queryWalletData().map { Triple(it.address, it.permission, it.weight) }