Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Conversation

@vic-en
Copy link
Contributor

@vic-en vic-en commented Dec 2, 2020

let tokenAddressList
if (paramData.tokenAddressList) {
tokenAddressList = paramData.tokenAddressList.split(separator)
tokenAddressList = JSON.parse(paramData.tokenAddressList)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will change the tokenAddressList from comma separated value to JSON string. HB client update will be needed for this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, that is already handled in the PR 2690 mentioned above.

Copy link
Contributor

Choose a reason for hiding this comment

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

This change makes it harder to test with Postman, since the tokenAddressList param in eth/balances and eth/allowances endpoints is a more complex object. Instead of passing in a dict, can we pass in two arrays: tokenAddressList and tokenDecimalList?

let tokenAddressList
if (paramData.tokenAddressList) {
tokenAddressList = paramData.tokenAddressList.split(separator)
tokenAddressList = JSON.parse(paramData.tokenAddressList)
Copy link
Contributor

Choose a reason for hiding this comment

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

This change makes it harder to test with Postman, since the tokenAddressList param in eth/balances and eth/allowances endpoints is a more complex object. Instead of passing in a dict, can we pass in two arrays: tokenAddressList and tokenDecimalList?

@fengtality fengtality merged commit 3c9fd6a into development Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants