After a score was given and the transaction is being processed, the value in scores[] in the contract is still 0. Since this is different from null being the default value in DB, null gets overriden with 0.
The proper score will never be saved bc db thinks the transaction is confirmed changing those values.
After a score was given and the transaction is being processed, the value in scores[] in the contract is still 0. Since this is different from null being the default value in DB, null gets overriden with 0.
The proper score will never be saved bc db thinks the transaction is confirmed changing those values.