Skip to content

Commit

Permalink
Add limit to isTrusted core function
Browse files Browse the repository at this point in the history
  • Loading branch information
llunaCreixent committed May 8, 2024
1 parent 6bf8da1 commit 537f4f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/services/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ const avatar = {
// Trust module

const trust = {
isTrusted: async (safeAddress) => {
isTrusted: async (safeAddress, limit) => {
return await requestCore('trust', 'isTrusted', {
safeAddress,
limit,
});
},

Expand Down
7 changes: 4 additions & 3 deletions src/store/trust/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ export function checkTrustState() {
let trustConnections = trust.trustConnections;

if (!trust.isTrusted) {
const result = await core.trust.isTrusted(safeAddress, {
limit: NEEDED_TRUST_CONNECTIONS,
});
const result = await core.trust.isTrusted(
safeAddress,
NEEDED_TRUST_CONNECTIONS,
);
isTrusted = result.isTrusted;
trustConnections = result.trustConnections;
}
Expand Down

0 comments on commit 537f4f0

Please sign in to comment.