Hey @cryptoGerry!
Your answer is actually the cheapest of the possible alternatives in terms of gas Nice one!
By the way, in case you didn’t know…
Before you type in your code to post it here in the forum, click on the </> icon in the menu at the top of the text editor. You will see 2 sets of 3 back ticks.
```
```
If you now input your code between these, you will end up with nicely formatted code, which is then also easier for you to organise with the correct spacing and indentation etc. You should then end up with something like:
function updateBalance(uint id, uint balance) public {
users[id].balance = balance;
}