Doubt in transfer #4708
-
In a payable function, if I send eth, if I have a modifier, first go to the modifier and then the money gets transfered or is it the other way around? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
If you are calling a transfer function from another contract and it has a modifier in it, then the condition of a modifier needs to be satisfied before proceeding with the remaining functionality. |
Beta Was this translation helpful? Give feedback.
-
thank you!! |
Beta Was this translation helpful? Give feedback.
If you are calling a transfer function from another contract and it has a modifier in it, then the condition of a modifier needs to be satisfied before proceeding with the remaining functionality.
For example, if you are transferring eth, but the function has a minimum amount condition in a modifier then it needs to pass the condition first.
I hope this helps, if not let me know.