Limiting accounts returned by parity_accountInfo (#3931)
* Limiting accountNames returned by parity_accountNames * Fixing middleware * Change RPC interface * Enhance tests for RPC layer * UI uses parity_allAccountsInfo * Update dapps to use parity_accountsInfo * Don't filter by uuid (deprecated) * Consistency in calls * Fix js tests (missed stub call)
This commit is contained in:
@@ -28,7 +28,7 @@ export function attachInterface () {
|
||||
return Promise
|
||||
.all([
|
||||
registry.getAddress.call({}, [api.util.sha3('githubhint'), 'A']),
|
||||
api.parity.accounts()
|
||||
api.parity.accountsInfo()
|
||||
]);
|
||||
})
|
||||
.then(([address, accountsInfo]) => {
|
||||
@@ -37,7 +37,6 @@ export function attachInterface () {
|
||||
const contract = api.newContract(abis.githubhint, address);
|
||||
const accounts = Object
|
||||
.keys(accountsInfo)
|
||||
.filter((address) => accountsInfo[address].uuid)
|
||||
.reduce((obj, address) => {
|
||||
const account = accountsInfo[address];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user