Eveything is up to date, there is nothing to compile
This means that your contracts have already been compiled and there is no need to recompile them. You can verify this by looking in your build/ directory to verify that your contracts are there.
If they are not there, then you have an issue with your deployment script. If this is the case, then you are ...
The problem is with the way I run truffle, nothing with truffle or the code.
I was using truffle as a local npm package. I set up a script in package.json as
and I was running the binary with
npm run truffle
The script runs normally when compiling:
npm run truffle compile
However, as the network ...
To solve the error you need to pass the arguments of the constructor in your migration file.
Based on your two params:
// Deploy a single contract with constructor arguments
deployer.deploy(towater, ["string_1", "string_2"], ["0x15458ef540ade6068dfe2f44e8fa733c", "0x15458ef540ade6068dfe2f44e8fa734c"] );
Check the Truffle docs.
There is no information about your deployment/testing methodology in the OP.
Here's a likely cause. Ganache blockchains are transient. Each time you restart ganache it's a new network with a new network id. Any previous deployments/migrations will not be present.
Make it your habit to $ truffle migrate --reset when you restart ganache. You'll see ...
You can set also the gas amount on your truffle-config.js, try setting the gas like this one below:
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/xxxxxxxx"),
Smart contracts are immutable (code cannot be changed) by design.
Truffle and ZeppelinOS are platforms for the development of smart contracts for Ethereum based blockchains.
Truffle migrate manages the deployment of contracts to blockchain(s). Each time you migrate a contract you deploy a new instance to a new public address. To use the new smart ...
In case of truffle the stored values will not remain in the upgraded contract whereas in proxy approach it is possible to obtain the stored values in the upgraded contract too.
In truffle upgrade a new version of contract is being deployed to the network and we will be obtaining a new contract address. If try to console the contract address in migrations ...