-
Notifications
You must be signed in to change notification settings - Fork 2.3k
VM Exception while processing transaction: revert #748
Comments
@Stradivario I haven't had a chance to read this fully yet, but I can tell just at a glance that this is a great bug report - thanks! In fact, it looks like the changes I just made to the ganache-cli issue template have some of the same things you've added here. |
@Stradivario Ganache 1.0.3 isn't out yet - perhaps you meant 1.0.2? |
@Stradivario if you post a link to your project repro or to a throwaway repo containing an example reproduction I'll run it. In the mean time, your migrations file is missing, so I can't go much further. My best guess at this point is that you haven't set the |
Another tip: you can debug this yourself with Also have a look at the truffle testing docs - you shouldn't be using hardcoded addresses, etc, as you've done above. |
@benjamincburns give me 1 hour and i will create repository Anyway my migration code is this
When i try to do truffle debug From this issue #608
About Genache yes you are right ! Version is 1.0.2 not 1.0.3 |
@benjamincburns Here is a repository where i am facing the bug i created it from scratch like it was working before 6 days :D http://gitlab.youvolio.com/kristiyan.tachev/truffle-contracts-issue |
Also in this repository there is a command inside package.json npm run truffle-fix it will copy lib/truffle-contract/contract.js to ./node_modules/truffle-contract/ this is because of issue with send and sendAsync explained here https://github.com/trufflesuite/truffle-contract/issues/57 if i don't do this it will throw error
|
Guys this is INSANE!!!! I just put as a last chance try! PARAMETER GAS to sendTransaction Oh my god and it is fucking working!!!!!!!!!!!!!! I am soo soo happy !! Anyway if someone have the same problem try to put gas as a parameter with appropriate amount 👍
48 Hours to catch this miss understanding i can't believe it really... |
@Stradivario glad to hear you've got it working. Bear in mind that the default gas limit for transactions is |
You might also be wondering "why did it revert instead of fail with 'Out of gas?'" The best I can tell is that before running some operations the solidity runtime checks whether or not you've allowed enough gas for that operation to succeed and |
At least on .catch needs to throw raw error instead of hard coded error which can come from many different problems when passing wrong parameters to your customized contract for example :) Regards! 👍 |
Hello World!
when I run this script twice, the first time it succeed , but the first time it raises VM Exception while processing transaction: revert |
1. Strange test with tradeableToken, testrpc error?trufflesuite/truffle#748 2. Truffle cannot deal with function overload.
I thought web3 would run |
Issue
When i try to sendTransaction from address to my Contract i get the following error:
Steps to Reproduce from test issue repository
Steps to Reproduce from scratch
The address generated above is automatically provided by Genache Elektron App
When i try to send transaction it breaks with the following error:
Expected Behavior
When sending transaction from contract to an address there should be no error message and amount of tokens should be transferred to address purchased and ether needs to be transferred to contract owner balance.
Previews week it was working fine and transaction was passing now contract is deployed and again i cannot send transaction to my contract...
Environment
The text was updated successfully, but these errors were encountered: