Clone factory and constructor arguments

In my project I’m using a Clone Factory: https://github.com/optionality/clone-factory/tree/master/contracts function createClone(address target) external returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let clone := mload(0x40) mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(clone, 0x14), targetBytes) mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) result := create(0, clone, 0x37) } addr = result; } It works for contracts without constructor or contracts with empty…

Web3 is not defined – Require not found

I am trying to connect and interact with a local blockchain (using ganache-cli) through the web3js library. I have created a local website that uses web3js library but I keep getting the following error message in my browser console when I try to load the web page. ReferenceError: require is not defined web3.min.js:1:636 <anonymous> https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js:1…