Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
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:
That is the deploy code:
And that is the .sol:
Replace ['Sat', 'Vit'] with:
['Sat', 'Vit'].map(x => web3.fromAscii(x))
['Sat', 'Vit'].map(x => web3.utils.asciiToHex(x))