fix: update get_block_storage_changes to correctly emit previous value (#280)

Before this commit we were using the latest `ContractSlot` for both previous and new value. This is not correct because if the value changed twice we would have the middle value emitted as "previous". For example if a value was changed like this in a single transaction 1 -> 10 -> 2 we would have `new_value=2` and `previous_values=10` while the previous value was actually 1.

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
Zizou
2025-09-25 17:41:07 +02:00
committed by GitHub
parent 486bd0c9e9
commit 12369c3981
3 changed files with 27 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tycho-substreams"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
description = "Tycho substreams development kit, contains tycho-indexer block changes model and helper functions for common indexing tasks."
repository = "https://github.com/propeller-heads/tycho-protocol-sdk/tree/main/substreams/crates/tycho-substreams"