@@ -133,8 +133,6 @@ type ExampleEntity @entity {
133
133
expect ( scaffoldWithIndexEvents . generateSchema ( ) ) . toEqual ( `\
134
134
type ExampleEvent @entity(immutable: true) {
135
135
id: Bytes!
136
-
137
- # Event params
138
136
a: BigInt! # uint256
139
137
b: [Bytes]! # bytes[4]
140
138
param2: String! # string
@@ -145,22 +143,16 @@ type ExampleEvent @entity(immutable: true) {
145
143
c_c3_value1: String! # string
146
144
c_c3_value2: Bytes! # bytes32
147
145
d: String! # string
148
- # Block & transaction info
149
146
blockNumber: BigInt!
150
- blockHash: Bytes!
151
147
blockTimestamp: BigInt!
152
148
transactionHash: Bytes!
153
149
logIndex: BigInt!
154
150
}
155
151
156
152
type ExampleEvent1 @entity(immutable: true) {
157
153
id: Bytes!
158
-
159
- # Event params
160
154
a: Bytes! # bytes32
161
- # Block & transaction info
162
155
blockNumber: BigInt!
163
- blockHash: Bytes!
164
156
blockTimestamp: BigInt!
165
157
transactionHash: Bytes!
166
158
logIndex: BigInt!
@@ -249,7 +241,6 @@ export function handleExampleEvent(event: ExampleEventEvent): void {
249
241
entity.d = event.params.d
250
242
251
243
entity.blockNumber = event.block.number
252
- entity.blockHash = event.block.hash
253
244
entity.blockTimestamp = event.block.timestamp
254
245
entity.transactionHash = event.transaction.hash
255
246
entity.logIndex = event.logIndex
@@ -264,7 +255,6 @@ export function handleExampleEvent1(event: ExampleEvent1Event): void {
264
255
entity.a = event.params.a
265
256
266
257
entity.blockNumber = event.block.number
267
- entity.blockHash = event.block.hash
268
258
entity.blockTimestamp = event.block.timestamp
269
259
entity.transactionHash = event.transaction.hash
270
260
entity.logIndex = event.logIndex
0 commit comments