Closed SteveHigham closed 3 years ago
What version of ganache-cli is being used?
Ganache CLI v6.12.2 (ganache-core: 2.13.2)
I have just upgraded the Mac to node version 10.23.1 and that has fixed the issue. I have just checked my Ubuntu machine and it is running node 10.23.0.
I'm fine to close the issue if you like as it is resolved under latest node 10 version. I'm also happy to experiment further if that helps.
Sounds like it's been resolved. Let's just plan to reopen if it happens again. :-)
This looks like a reopening of issue #397.
I have a very simple sample contract with a couple of tests. These run fine on my Ubuntu 20 machine. When I run the same process on my Mac (Big Sur Version 11.1) I get an error - VM Exception while processing transaction: invalid opcode
Expected Behavior
The migration should complete successfully as it does on my Ubuntu machine.
Current Behavior
Starting migrations...
1_initial_migration.js
Deploying 'Migrations'
⠋ Saving migration to chain. Error: Returned error: VM Exception while processing transaction: invalid opcode at Migration._deploy (/Users/steve/dev/crypto/ethereum/SimpleVoting/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:97:1) at process._tickCallback (internal/process/next_tick.js:68:7) Truffle v5.1.61 (core: 5.1.61) Node v10.23.0
Possible Solution
Don't use OSX for Truffle development?
Steps to Reproduce (for bugs)
I contract I'm trying to migrate (partially written) is as follows:
// SPDX-License-Identifier:UNLICENSED pragma solidity 0.8.0;
contract SimpleVoting { // Users
}
// End of file.
Context
As stated in issue #397 it's worrying when something works fine on the Ubuntu platform but fails on OSX. Does this mean I should not develop using Truffle on OSX.
Your Environment