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

"care to help" should check if target address is a contract #683

Open
phraktle opened this issue Jul 3, 2019 · 0 comments
Open

"care to help" should check if target address is a contract #683

phraktle opened this issue Jul 3, 2019 · 0 comments

Comments

@phraktle
Copy link
Contributor

phraktle commented Jul 3, 2019

We should only worry about zero ETH balance at recipient if it's a plain address.

const code = web3.eth.getCode(address);
const isPlainAddress = code === '0x';
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

No branches or pull requests

1 participant