I have the following deployment script
var contract = web3.eth.contract(response.abi);
var bytecode = response.bytecode;
var options = {
from: web3.eth.defaultAccount,
gas: 1004000,
data: bytecode
};
console.log("Deploying the contract");
contract.new(options
Everything seems to work also my contracts is deployed
https://ropsten.etherscan.io/address/0x12c135a0f44940f34379a063118a2a08143c3262
The problem is msg.sender is empty into the contracts and the function return 0x0000000000000000000000000000000000000000
this is set in the constructor in the Ownable OpenZeppelin contract but deployed this way it return 0x0000000000000000000000000000000000000000
My ABI https://pastebin.com/0XU4heNN
and bytecode https://pastebin.com/ThnDd1FC
The contract
pragma solidity ^0.5.2;
import '../../../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol';
import '../../../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol';
contract PropertyContract is ERC20Mintable, Ownable {
}
data: '0x' + bytecode
? I had a similar issue a while back. this fixed that.0x