2

hey I was trying to pass some ether from my account to smart contract through metamask. Ive already given some ether from my contract to metamask account so it should be possible to do the same even without a payable function.transferring ether to contract through wallet is as easy as transferring ether to any usual account right? But when i send ether it gives me following error- enter image description here

Any help would be appreciated thanks. :)

2

if you want to send ethers to smart contract you should define a pyable function it could be the fallback function.otherwise you will get an error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.