Skip to content
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

Implemented eth_getFilterLogs #40

Merged
merged 7 commits into from
Feb 24, 2021
Merged

Conversation

Ferret-san
Copy link

No description provided.

balance := decimal.NewFromFloat(0)
for _, utxo := range *qtumresp {
balance = balance.Add(utxo.Amount)
}

// 1 QTUM = 10 ^ 8 Satoshi

balance = balance.Mul(decimal.NewFromFloat(1e18))
Copy link

Choose a reason for hiding this comment

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

need to get rid of this.

@@ -157,7 +146,7 @@ func (p *ProxyETHGetFilterChanges) toSearchLogsReq(filter *eth.Filter, from, to
addresses[i] = utils.RemoveHexPrefix(addresses[i])
}
}

Copy link

Choose a reason for hiding this comment

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

gofmt this guy.

@Ferret-san Ferret-san closed this Feb 24, 2021
@VoR0220 VoR0220 reopened this Feb 24, 2021
@VoR0220 VoR0220 merged commit 1d67633 into qtumproject:master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants