Hi @nbkeaton,
Good to see you back here in forum after a while
Your notes are good, and changing the local user
variable’s data location from memory
to storage
is essentially correct but your code doesn’t compile, and so your contract can’t be deployed. You should have got two compiler errors, which also highlight the lines where these errors occur with red indicators. If you hover over these red indicators you will see the error messages. These error messages explain where the specific errors are in your code. You will also find these error messages at the bottom of the Solidity Compiler panel.
You will see that your error is easily fixed. And this also highlights the importance of not mixing up the names of state variables (or mappings) and local variables, especially if they are similar.
Let me know if you have any questions about how to correct this.