---
# System prepended metadata

title: Week 6 & 7 update

---

# Week 6 & 7 update

This is my update for Week 6 and 7 for project BAL in reth. The update is kinda late since we were waiting for review on our previous works. We were changing the inner structures of the [revm](https://github.com/bluealloy/revm) like balance_incr and sstore etc and needed a review from [Dragan Rakita](https://github.com/rakita) and [Matthias Seitz](https://github.com/mattsse). After getting a positive review, we continued with the next stage of work. Meanwhile the eip got changed again.
However it will hopefully fit well with our existing approach .

## Week 6 and 7 works:
For the 2 weeks, we implemented the balance change and nonce change part. We also started on the  code change part. These are a bit like storage change. However there are many things to be tested while doing them . My friend [@Rimeeeeee](https://github.com/Rimeeeeee) implemented the core changes and I added a few test cases for these. My primary approach was making sure all the mandatory expectations get covered.
For example,we spinned up a normal case of balance transfer between two accounts, and recorded the balance state before transfer and after it.All are working as expected . However we will need to test the entire logic all together in reth for BAL.

I was also keeping in check the performance changes concerning our implementation logic. Over the past couple of days,we tried several approaches and compared changes recording stages as well as on-call/in function implementation of logic.

The revert for NonceChange was kinda tricky. While the initial approach consisted of removing if it fails by transaction id,but upon careful discussion with our mentor we decided to tackle it in accordance to existing nonce workflow.

 Hopefully the code change and the new edgecases will be implemented and tested in the next couple of weeks. After that we will start combining them and make changes in reth.
 
## Week 6 & 7 PRs
[Balance Change](https://github.com/Soubhik-10/revm/pull/6)
[Ci Fix](https://github.com/Soubhik-10/revm/pull/11)
[Nonce Change](https://github.com/Soubhik-10/revm/pull/12)
## Next week plans
Complete the code changes and take on the new eip changes.
## Other works
Along with this I also contributed to reth and foundry .
Here are those:
 [DB Max reader flag in reth](https://github.com/paradigmxyz/reth/pull/17663)
 [JSTracer for debug_traceTransaction](https://github.com/foundry-rs/foundry/pull/11118)
[Anvil Recover Signer](https://github.com/foundry-rs/foundry/pull/11195)