Skip to content

receive function #2663

Discussion options

You must be logged in to vote

@Naveed-Jameel Not actually, Yes it is true that the gas cost will be deducted till the required statement for computation and if the statement gets failed then the remaining gas will be refunded back, but the value that we are sending will only be added to the contract when we pass the statement. As you can see we are storing msg.value to sender mapping after it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Naveed-Jameel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants