I am trying to pass ether from one contract to another in remix, but it is throwing error and reverts, when I create "EtherTransferFrom" contract with value other than 0. Can you kindly check and help?



You must first deploy EtherTransferTo and note its address lets say it is 0x123....

Then when you new up your _instance you pass in that address.

function EtherTransferFrom() public {
  _instance = new EtherTransferTo(0x123....);
  • Thanks for the explanation. But even one empty contract (while trying to debug), with one empty payable function, also throws same VM error. – parthi2929 Dec 1 '17 at 13:25

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.