Skip to content

21,000 gas vs. 2300 gas to trasnfer ETH #806

Answered by krakxn
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

It is because the withdraw() function is gas-intensive as it employs the use of a for loop - Patrick explains gas optimization in the early chapters, so look out for that! Let me know if this helps!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ManuWeb3
Comment options

@krakxn
Comment options

@ManuWeb3
Comment options

Answer selected by ManuWeb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants