Deploying Smart Contracts on Mazze Testnet
Prerequisites
Step 1: Setting Up Your Development Environment
Using Truffle
npm install -g trufflemkdir MyDapp && cd MyDapp truffle initmodule.exports = { networks: { mazze-testnet: { provider: () => new HDWalletProvider(process.env.MNEMONIC, "https://testnet-rpc.mazze.io"), network_id: 199991, gas: 5500000, // Gas limit used for deploys confirmations: 2, // # of confs to wait between deployments timeoutBlocks: 200, // # of blocks before a deployment times out skipDryRun: true // Skip dry run before migrations? (default: false for public nets) }, }, // Other configurations... };
Using Hardhat
Step 2: Writing Your Smart Contract
Step 3: Deploying Your Smart Contract
Using Truffle
Using Hardhat
Step 4: Interacting with Your Deployed Contract
Last updated
Was this helpful?