1

I tried the deployed contracts and they work as expected. KombuchaProxy shouldn't update Kombucha contract. It updates its own storage. The whole idea of a proxy is that it contains the data and point to another contract that has the code. To test this in Remix I instantiated Kombucha contract at KombuchaProxy address. Now you can execute Kombucha ...


1

Constructor arguments are passed during deployment, not during compilation.


1

Using below code you can deploy your contract using truffle-contract. const contract = require('truffle-contract'); const DeployJson = fs.readFileSync("E:/Deploy/build/contracts/Deploy.json"); const DeployContract = contract(DeployJson); DeployContract.setNetwork('network_id'); // Unlock the account from which you want to deploy the contract await web3.eth....


1

There's no deploy method in the API provided by require('truffle-contract'). Given truffleContract = require('truffle-contract'), you need to do something like this: const myContract = truffleContract({abi: ..., unlinked_binary: ...}); const block = await web3.eth.getBlock('latest'); myContract.setProvider(web3.currentProvider); myContract.defaults({from: ...


1

According to this, you have used a gas-price of 0.00000000003 Ether (0.03 Gwei (30,000,000 wei)). According to your question, you have used in your transaction a gas-price of 1,050,000,000 wei. Conclusion: you are not telling the truth (though you are probably not doing it intentionally).


1

Assuming that you have already compiled the contract, and that its abi and bytecode are in files <ContractName>.abi and <ContractName>.bin respectively, you can use this script (web3 v1.2.1): const fs = require("fs"); const Web3 = require("web3"); const NODE_ADDRESS = "..."; const PRIVATE_KEY = "..."; const CONTRACT_NAME = "..."; const ...


Only top voted, non community-wiki answers of a minimum length are eligible