Filter Token Accounts by Account Type#1611
Conversation
|
k6 load testing comparison.
Legend: Avg - Average Response Time, Max - Maximum Response Time, 90 - 90th Percentile, 95 - 95th Percentile |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .withCondition(QueryConditionOptions.must, [QueryType.Match("token", identifier, QueryOperator.AND)]); | ||
|
|
||
|
|
||
| const contractAddressPrefix = 'erd1' + 'q'.repeat(12);; |
There was a problem hiding this comment.
Extract this logic into a helper function. Same code used in the getTokenAccounts method
There was a problem hiding this comment.
stray double semicolon and double blank line. const contractAddressPrefix = 'erd1' + 'q'.repeat(12);; has a trailing ;;, and lines 145-146 are two consecutive blank lines
| .withCondition(QueryConditionOptions.must, [QueryType.Match("token", identifier, QueryOperator.AND)]); | ||
|
|
||
|
|
||
| const contractAddressPrefix = 'erd1' + 'q'.repeat(12);; |
There was a problem hiding this comment.
stray double semicolon and double blank line. const contractAddressPrefix = 'erd1' + 'q'.repeat(12);; has a trailing ;;, and lines 145-146 are two consecutive blank lines
Reasoning
Proposed Changes
How to test