Konwertuj ciąg w 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" }
Sab Tech