@@ -61,7 +61,7 @@ function getCurrentSnapshot(inboxAddress: Address): Snapshot {
6161 const snapshot = new Snapshot ( snapshotId ) ;
6262 snapshot . inbox = inboxAddress ;
6363 snapshot . numberMessages = BigInt . fromI32 ( 0 ) ;
64- snapshot . taken = false ;
64+ snapshot . saved = false ;
6565 snapshot . resolving = false ;
6666 snapshot . epoch = BigInt . fromI32 ( 0 ) ;
6767 snapshot . epochString = "0" ;
@@ -84,7 +84,7 @@ function getCurrentSnapshot(inboxAddress: Address): Snapshot {
8484 ) ;
8585 snapshot . inbox = inboxAddress ;
8686 snapshot . numberMessages = BigInt . fromI32 ( 0 ) ;
87- snapshot . taken = false ;
87+ snapshot . saved = false ;
8888 snapshot . resolving = false ;
8989 snapshot . epoch = BigInt . fromI32 ( 0 ) ;
9090 snapshot . epochString = "0" ;
@@ -127,7 +127,7 @@ export function handleSnapshotSaved(event: SnapshotSaved): void {
127127 const epoch = event . block . timestamp . div ( epochPeriod ) ;
128128 const stateRoot = contract . snapshots ( epoch ) ;
129129 const currentSnapshot = getCurrentSnapshot ( event . address ) ;
130- currentSnapshot . taken = true ;
130+ currentSnapshot . saved = true ;
131131 currentSnapshot . caller = event . transaction . from ;
132132 currentSnapshot . stateRoot = stateRoot ;
133133 currentSnapshot . stateRootString = stateRoot . toHexString ( ) ;
@@ -147,7 +147,7 @@ export function handleSnapshotSaved(event: SnapshotSaved): void {
147147 const newSnapshot = new Snapshot ( snapshotId ) ;
148148 newSnapshot . inbox = event . address ;
149149 newSnapshot . numberMessages = BigInt . fromI32 ( 0 ) ;
150- newSnapshot . taken = false ;
150+ newSnapshot . saved = false ;
151151 newSnapshot . resolving = false ;
152152 newSnapshot . save ( ) ;
153153
@@ -204,7 +204,7 @@ export function handleSnapshotSent(event: SnapshotSent): void {
204204 const inbox = VeaInboxArbToEthDevnet . bind ( event . address ) ;
205205
206206 let currentSnapshot = getCurrentSnapshot ( event . address ) ;
207- currentSnapshot . taken = false ;
207+ currentSnapshot . saved = false ;
208208 currentSnapshot . resolving = true ;
209209 currentSnapshot . timestamp = epochSent . times ( inbox . epochPeriod ( ) ) ;
210210 currentSnapshot . stateRoot = Bytes . fromHexString (
@@ -225,7 +225,7 @@ export function handleSnapshotSent(event: SnapshotSent): void {
225225 const newSnapshot = new Snapshot ( newSnapshotId ) ;
226226 newSnapshot . inbox = event . address ;
227227 newSnapshot . numberMessages = BigInt . fromI32 ( 0 ) ;
228- newSnapshot . taken = false ;
228+ newSnapshot . saved = false ;
229229 newSnapshot . resolving = false ;
230230 // Initialize new snapshot fields with defaults.
231231 newSnapshot . epoch = BigInt . fromI32 ( 0 ) ;
0 commit comments