Skip to content

Commit

Permalink
fix: limit number of addresses sent to API (#4392)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Nov 24, 2023
1 parent 016561d commit bf71e11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ export async function lookupAddress(
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ method: 'lookup_addresses', params: addresses })
body: JSON.stringify({
method: 'lookup_addresses',
params: addresses.slice(0, 250)
})
});

const results = (await response.json()).result;
Expand Down

1 comment on commit bf71e11

@vercel
Copy link

@vercel vercel bot commented on bf71e11 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.