Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM Exception while processing transaction: invalid opcode #25

Open
gregrenard opened this issue May 24, 2023 · 2 comments
Open

VM Exception while processing transaction: invalid opcode #25

gregrenard opened this issue May 24, 2023 · 2 comments

Comments

@gregrenard
Copy link

I'm testing the following code in a setup with Ganache on MacBook Pro :

from ethairballoons.ethairballoons import ethairBalloons

prov = ethairBalloons('127.0.0.1', '..')

carSchema = prov.createSchema(modelDefinition={
    'name': "Car",
    'contractName': "carsContract",
    'properties': [{
            'name': "model",
            'type': "bytes32",
            'primaryKey': True
    },
        {
            'name': "engine",
            'type': "bytes32",
    },
        {
            'name': "cylinders",
            'type': "uint"
    }
    ]
})

carSchema.deploy()

And I get this error message:

>> ... .venv/lib/python3.8/site-packages/web3/_utils/method_formatters.py", line 561, in raise_solidity_error_on_revert
    raise ContractLogicError(f'execution reverted: {response["error"]["message"]}')
web3.exceptions.ContractLogicError: execution reverted: VM Exception while processing transaction: invalid opcode

Do you have any idea what it's happening, the code was working fine and I just restarted and it's not working anymore.
Thank you for your precious help and support.

@petrosDemetrakopoulos
Copy link
Owner

Try updating ganache. Most probably it is a ganache issue.

@gregrenard
Copy link
Author

Thank you so much for your answer @petrosDemetrakopoulos.

I updated Ganache with the last version 2.7.1 but still have the same error.

Do you have any additional suggestions for troubleshooting? I'm running out of ideas. It's been nearly two days, and I'm still trying to figure out what's causing the issue. Completely crazy, I did not change anything, just restarted the service both on my Mac and Ubuntu server and I have the same issue

Thank you again for everything you're doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants