Skip to content

Commit

Permalink
tmp: frozen log in browser indexer state handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Nov 25, 2023
1 parent 20d7269 commit b8ee9b3
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
7 changes: 7 additions & 0 deletions examples/mud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# web-demo

## 0.1.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-browser@0.6.22

## 0.1.51

### 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.51",
"version": "0.1.52",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
7 changes: 7 additions & 0 deletions examples/web-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# web-demo

## 0.1.52

### Patch Changes

- Updated dependencies
- ethereum-indexer-browser@0.6.22

## 0.1.51

### 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.51",
"version": "0.1.52",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 6 additions & 0 deletions packages/ethereum-indexer-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ethereum-indexer-browser

## 0.6.22

### Patch Changes

- tmp : forzen in browser state handler

## 0.6.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ethereum-indexer-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-indexer-browser",
"version": "0.6.21",
"version": "0.6.22",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/ethereum-indexer-browser/src/IndexerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export function createIndexerState<ABI extends Abi, ProcessResultType, Processor
const initialState = processor.createInitialState();

const {set: setStatus, readable: readableStatus} = createStore<StatusState>({state: 'Idle'});
const initialState_frozen = Object.isFrozen(initialState);
console.log({initialState_frozen});
const {set: setState, readable: readableState} = createRootStore<ProcessResultType>(initialState);
const initialState_store_frozen = Object.isFrozen(initialState);
console.log({initialState_store_frozen});

let indexer: EthereumIndexer<ABI, ProcessResultType> | undefined;
let indexingTimeout: number | undefined;
Expand Down

0 comments on commit b8ee9b3

Please sign in to comment.