nanmu42 / etherscan-api

:guitar: Golang client for Ethereum Etherscan API (and its families like BscScan) / Golang 以太坊 Etherscan API库(也支持同一家族的BscScan)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for an empty contract in ERC20Transfers function

BenKnigge opened this issue · comments

pull request #10

This would allow for an empty string pointer to be passed in to ERC20Transfers
resulting in the parameter of the contract address being omitted from the underlying api call.

The result being all coin transfers being returned instead of a list filtered by contract address.

Have you tried passing nil to contractAddress? I think that would do what you need.

yes, nil seems to work