Skip to content

Commit

Permalink
bump api version again and fix handleblock
Browse files Browse the repository at this point in the history
  • Loading branch information
paymog committed May 30, 2024
1 parent 117c696 commit dc0a9a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/mappings/blocks.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
EthereumBlock
ethereum
} from "@graphprotocol/graph-ts"

import {
Block
} from "../../generated/schema"

export function handleBlock(block: EthereumBlock): void {
export function handleBlock(block: ethereum.Block): void {
let id = block.hash.toHex()
let blockEntity = new Block(id);
blockEntity.number = block.number;
Expand All @@ -23,4 +23,4 @@ export function handleBlock(block: EthereumBlock): void {
blockEntity.size = block.size;
blockEntity.unclesHash = block.unclesHash.toHex();
blockEntity.save();
}
}
2 changes: 1 addition & 1 deletion subgraph.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dataSources:
startBlock: 192
mapping:
kind: ethereum/events
apiVersion: 0.0.5
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ConverterAddition
Expand Down

0 comments on commit dc0a9a6

Please sign in to comment.