0

Hi In my contract I send ether from my contract to other address like address.transfer(winnerAmount);. It transfer ether successfully if my array have one address. If I have more than one address it throws 'VM Exception while processing transaction: revert'. All other lines of code inside for loop works good if I comment transfer. I want to know what is the reason for this? I tried also adjusted gas limit, but it always fail. What is the better way to transfer the ether inside for loop? Thank you.

  • 1
    You should provide the code that's causing the error to get the best help. – ReyHaynes Mar 27 '18 at 13:56
  • Make sure you have ethers stored in your contract address. Code may help to debug. – Aniket Mar 27 '18 at 14:03
  • Please provide the code that's causing the error for best help. – Daniel Sep 15 '18 at 1:28
  • Sorry that was long time ago..Some how I moved on – e.k Sep 17 '18 at 12:12

Your Answer

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

Browse other questions tagged or ask your own question.