I am trying to learn about solidity so I just watch a tutorial about it, I already copy the same code as the tutorial but there is an error with bytes32.
Here it is:

Asked
Active
Viewed 2,449 times
2
Jorge Navarro
- 61
- 1
- 3
1 Answers
4
Replace ['Sat', 'Vit'] with:
['Sat', 'Vit'].map(x => web3.fromAscii(x))if you're on Truffle 4.x (web3 0.x)['Sat', 'Vit'].map(x => web3.utils.asciiToHex(x))if you're on Truffle 5.x (web3 1.x)
goodvibration
- 26,003
- 5
- 46
- 86
-
web3.utils.asciiToHex – ddanone Aug 08 '20 at 05:31

