-1

I followed a YouTube video and deployed a contract on Remix; and deposited 0.6 ETH on it. Initially, I tried to deposit a little amount of 0.1ETH and tried to Withdraw it (just to check if it is legit!). Everything went good and I received the money in my metamask Account.

Once it went good, I fund with 0.6 ETH on the same contract ( 0xC662980b7dD761c2Cb6Ff4EbaB5B3695fAF05963). Unfortunately, when the contract was running, my MacBook turned off. After restarting it, the contract was no longer there on Remix.

My money has been stuck! Is there any way to stop the contract and get the fund back to my metamask account? I am quite new to this thing; your help will be much appreciated.

Here is the solidity code: https://pastebin.com/gSrCe0Se
YouTube Video that I followed: https://www.youtube.com/watch?v=BVLAbJbT59w&t=1s
Contract: 0xC662980b7dD761c2Cb6Ff4EbaB5B3695fAF05963

Please help me!

1 Answers1

0

You can load already deployed code in remix. Fist you compile the code again and to connect the deployed contract paste the contract address to box next to the te At Address and click the button At Address:

enter image description here

Make sure you are connected to the right network in the ENVORINMENT option.

Tahlil
  • 1,031
  • 1
  • 14
  • 26
  • I seriously need your help @Tahili. I just clicked on the withdraw, it the fund transferred to another address 0xe2C22bF333d41bC8343cDD15dAEfe0A80FD1A4a5 What should I do now? – Hitesh Das Sep 11 '22 at 10:18
  • Can you share the source of the code? The `withdrawal` function actually doesn't withdraw it deposits the ether to the contract. So don't call it anymore. Also, did you deployed the contract at 0xe2C22bF333d41bC8343cDD15dAEfe0A80FD1A4a5 ? – Tahlil Sep 11 '22 at 17:09
  • No. I didn't.. The Source code has been given in the post. Let me share you again: https://pastebin.com/gSrCe0Se Actually, now I realise that I have been scammed. And I am noting down all the transaction he has performed. You can find all the details here on this PDF: https://drive.google.com/file/d/13hCyQmDi6UyJgnAMnfdvhYUpDgQlcZy6/view?usp=sharing – Hitesh Das Sep 12 '22 at 06:41