New answers tagged


I had the same problem. I solved it by reducing the gas limit in the truffle-config.js to the permissible limit in ganache


Let's consider the test contract in which the constructor accepts two params: // SPDX-License-Identifier: MIT pragma solidity ^0.8.3; contract Test { address public owner; address public user1; address public user2; constructor (address _user1, address _user2) { owner = msg.sender; user1 = _user1; user2 = _user2; ...

Top 50 recent answers are included