Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
"Error de tipo: no se puede leer la propiedad 'dirección' de indefinido" Recibo este error después del almuerzo, la implementación en la red de prueba, pero en localhost funciona

Recibo este error TypeError : Cannot read property 'address' of undefined después npx hardhat run scripts/deploy.js --network goerli , pero el mismo comando en localhost funciona bien, ¿por qué?

hardhat.config.js

 require('dotenv').config(); require("@nomiclabs/hardhat-ethers"); const { API_URL, PRIVATE_KEY } = process.env; module.exports = { solidity: '0.8.4', defaultNetwork: "goerli", networks: { hardhat: {}, goerli: { url: API_URL, accounts: [`0x${PRIVATE_KEY}`] } }, };

desplegar.js

el error parece estar aquí, pero no entiendo por qué el almuerzo npx hardhat run scripts/deploy.js funciona bien y con goerly (u otra red de prueba no)

si escribo console.log(accounts[0].address); console.log(accounts[1].address) ; ¡Obtengo el registro solo del primero!

 const { ethers } = require("hardhat"); const main = async () => { let accounts; accounts = await ethers.getSigners(); const OWNERS = [ accounts[0].address, accounts[1].address, accounts[2].address ] const NUM_CONFIRMATIONS = 2 const MultiSig = await ethers.getContractFactory("MultiSig"); const multiInstance = await MultiSig.deploy(OWNERS, NUM_CONFIRMATIONS); const TestContract = await ethers.getContractFactory("TestContract"); const testContract = await TestContract.deploy("msg"); await multiInstance.deployed(); await testContract.deployed(); console.log('multisig contract address: ', multiInstance.address); console.log('test contract address: ', testContract.address); }; const runMain = async () => { try { await main(); process.exit(0); } catch (error) { console.error(error); process.exit(1); } }; runMain();
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

tal vez lo tengo, agregué solo 1 clave privada, tengo que agregar más en la matriz de "cuentas"

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!