CodingYourLife

CodingYourLife

 

Referenzen

 
 

Pass Text (bytes) to Smart Contract

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“)) //for bytes
web3.utils.hexToAscii(web3.utils.toHex(„EUR“)) //for string

Kommentar schreiben

Kommentar