«Convertir Stringin Ethers.js» Réponse du code

Convertir Stringin Ethers.js
import ethers from 'ethers'
// If a user enters a string in an input field, you may need
// to convert it from ether (as a string) to wei (as a BigNumber)
ethers.utils.parseEther("inputString")
// { BigNumber: "1000000000000000000" }

Laisser un commentaire