Truffle
Usando Truffle con Base
bashCopy codenpm install -g trufflebashCopy codetruffle initjavascriptCopy codeconst HDWalletProvider = require('@truffle/hdwallet-provider'); module.exports = { networks: { 'base-mainnet': { provider: function () { return new HDWalletProvider('MNEMONIC', 'https://mainnet.base.org'); }, }, 'base-goerli': { provider: function () { return new HDWalletProvider('MNEMONIC', 'https://goerli.base.org'); }, }, 'base-local': { host: 'localhost', port: 8545, network_id: '*', }, }, };bashCopy codetruffle migrate --network base-goerli
Last updated