Since Solidity v0.5.0 it became a little less straight forward. I had a parameter bytes8 and I had to change the parameter in the tests from just „EUR“ to:
web3.utils.hexToBytes(web3.utils.toHex("EUR")).slice(0, 8) //for bytes8 bytesweb3.utils.hexToAscii(web3.utils.toHex("EUR")) //for string
Schreibe einen Kommentar