Gotchas - solidity ethereum

Solidity Gotcha's


Nested dynamic arrays cannot be used with the combination of both solidity and javascript

[
    [1,2,3],
    [4,5,6],
]

Solidity stores strings as dynamic arrays, ergo, something like:

const colors = ["red", "green", "blue"]

cannot be used. Pending solution in Grider course.

        

Metamask Injects their own version of web3

We have to replace default provider with our own custom provider with the version of web3 we deployed our contract with

# Link to source
https://www.udemy.com/course/ethereum-and-solidity-the-complete-developers-guide/learn/lecture/9020582#overview