bnb-chain / go-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetToken does not support query parameters

phoorichet opened this issue · comments

Query GetToken function does not expose query params to the caller.

https://github.com/binance-chain/go-sdk/blob/98a01c4963488fb43ade98680ff8158c41e12030/client/query/get_tokens.go#L10-L12

In the API reference, Get tokens list allows limit and offset so the client can optionally manipulate these values.

When the number of issued tokens is more than the default limit (which is 500), they got cut off. Thus, GetToken does not return the correct list of all tokens.

commented

thks for your report. The issue is going to fixed in #58