Skip to content

Commit

Permalink
fix reverseBlock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Nov 26, 2023
1 parent 6b51fbf commit 10bb3a0
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 8 deletions.
7 changes: 7 additions & 0 deletions examples/event-processor-bleeps/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-bleeps

## 0.0.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.26

## 0.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-bleeps/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-bleeps",
"private": true,
"version": "0.0.51",
"version": "0.0.52",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-conquest-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-conquest-eth

## 0.0.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.26

## 0.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-conquest-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-conquest-eth",
"private": true,
"version": "0.0.51",
"version": "0.0.52",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-conquest-fplay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-conquest-fplay

## 0.0.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.26

## 0.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-conquest-fplay/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-conquest-fplay",
"private": true,
"version": "0.0.51",
"version": "0.0.52",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-nfts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-nfts

## 0.0.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.26

## 0.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-nfts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-nfts",
"private": true,
"version": "0.0.51",
"version": "0.0.52",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
10 changes: 10 additions & 0 deletions examples/mud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# web-demo

## 0.1.58

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.26
- event-processor-bleeps@0.0.52
- event-processor-conquest-eth@0.0.52
- event-processor-nfts@0.0.52

## 0.1.57

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/mud/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mud-demo",
"private": true,
"version": "0.1.57",
"version": "0.1.58",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
8 changes: 8 additions & 0 deletions examples/web-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# web-demo

## 0.1.58

### Patch Changes

- event-processor-bleeps@0.0.52
- event-processor-conquest-eth@0.0.52
- event-processor-nfts@0.0.52

## 0.1.57

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/web-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-demo",
"private": true,
"version": "0.1.57",
"version": "0.1.58",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 6 additions & 0 deletions packages/ethereum-indexer-js-processor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ethereum-indexer-js-processor

## 0.6.26

### Patch Changes

- fix reverseBlock bug

## 0.6.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ethereum-indexer-js-processor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-indexer-js-processor",
"version": "0.6.25",
"version": "0.6.26",
"description": "",
"keywords": [],
"author": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class History {
}

const patches = this.historyJSON.reversals[blockHash];
for (let i = patches.length - 1; i <= 0; i--) {
for (let i = patches.length - 1; i >= 0; i--) {
json = applyPatches(json, patches[i]);
}

Expand Down

0 comments on commit 10bb3a0

Please sign in to comment.