Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

327
Vistas
ethers.js AbiCoder returns undefined

I am trying to encode function parameters for calldata using AbiCoder function in my nodejs app. But the returned value is undefined.

Here's my code snippet:

const abiCoder = new ethers.utils.AbiCoder();
const data = abiCoder.encode(["address"], ["0x72c4b017a057505e621c4481ff6ee1aa628373a3"])

console.log(data);
//console output
undefined

I also tried to run the same function in web3.js using encodeParameter function but it still returns the same 'undefined'. Is there a pre setup that I am missing?

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda