Truffle

When the smart contract application becomes more complex requiring team development, deployment, testing, migration etc.

In order to deal with these requirements, we recommend installing the tool "Truffle" provided by ConsenSys Corporation.

For an explanation of Truffle, please review the official Truffle documents.

Note

In truffle, the default value of gasPrice is 100 gwei, but transactions with 10 gwei as gasPrice is allowed in Z.com Cloud Blockchain. Please set 10gwei in gasPrice when you deploy contracts.

  • example of truffle.js
module.exports = {
    networks: {
        production: {
            host: "localhost",
            port: 8545,
            gasPrice: 10000000000
        }
    }
};
  • how to migrate
truffle migrate --network production

results matching ""

    No results matching ""