Need help with scrip .js
Task details
POSTED
Posted on Apr 1st, 2022
STATUS
Filled
DURATION
1 days
VALUE
$300.00
per project
LOCATION
Remote
TYPE
One Time
APPLICATIONS
9
Skills Required
- Full Stack Development
- Blockchain Development
having issue with script. im having issue with the nonce manager and geting Error: invalid web3 implicit bytes32.
i have tried to solution below but doesnt work for me.
function web3StringToBytes32(text) { var result = ethers.utils.hexlify(ethers.utils.toUtf8Bytes(text)); while (result.length < 66) { result += '0'; } if (result.length !== 66) { throw new Error("invalid web3 implicit bytes32"); } return result; }
Are you an employer? Post a similar job