withdraw function #1505
Answered
by
Rishi860
karabulut18
asked this question in
Q&A
withdraw function
#1505
-
In lesson 8th, I follow the course and do same thing but when I use withdraw function I get an error like this:
FundMe.sol same as in the repo. |
Beta Was this translation helpful? Give feedback.
Answered by
Rishi860
Aug 3, 2022
Replies: 1 comment 1 reply
-
This is a custom error which is triggered when anyone other than the owner of the contract tries to withdraw the deposited funds. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
karabulut18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a custom error which is triggered when anyone other than the owner of the contract tries to withdraw the deposited funds.
Use the same account to withdraw with which you created the contract.