Skip to content

Workaround for missing tokenDecimal for tokentx calls #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 20, 2018
Merged

Conversation

nanmu42
Copy link
Owner

@nanmu42 nanmu42 commented Nov 20, 2018

This PR resolves #8 .

Some ERC20 contract does not have valid decimals information in Etherscan.
When that happens, TokenName, TokenSymbol are empty strings,
and TokenDecimal will be 0, instead of a unmarshaling error.

More information can be found at: #8

Note on a Etherscan bug:
Some ERC20 contract does not have valid decimals information in Etherscan.
When that happen TokenName, TokenSymbol are empty strings,
and TokenDecimal is 0.

More information can be found at:
#8
@nanmu42 nanmu42 added the etherscan-bug bug from etherscan label Nov 20, 2018
@nanmu42 nanmu42 self-assigned this Nov 20, 2018
@codecov
Copy link

codecov bot commented Nov 20, 2018

Codecov Report

Merging #12 into master will increase coverage by 0.4%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #12     +/-   ##
=========================================
+ Coverage   78.32%   78.73%   +0.4%     
=========================================
  Files          10       10             
  Lines         263      268      +5     
=========================================
+ Hits          206      211      +5     
  Misses         34       34             
  Partials       23       23
Impacted Files Coverage Δ
account.go 91.78% <ø> (ø) ⬆️
client.go 54.43% <100%> (+3.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5adb18a...8f0b304. Read the comment docs.

@nanmu42 nanmu42 merged commit 28455ff into master Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
etherscan-bug bug from etherscan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

etherScanClient.ERC20Transfers unmarshal error
1 participant