Skip to content

Commit b87ffb6

Browse files
authored
evm: make DebugFrame.input optional and add default value (#316)
1 parent 9a75781 commit b87ffb6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@subsquid/evm-processor",
5+
"comment": "make `DebugFrame.input` optional and add default value",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@subsquid/evm-processor"
10+
}

evm/evm-processor/src/ds-rpc/rpc-data.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
ref,
1414
SMALL_QTY,
1515
STRING,
16-
Validator
16+
Validator,
17+
withDefault
1718
} from '@subsquid/util-internal-validation'
1819
import {Bytes, Bytes20, Bytes32, Qty} from '../interfaces/base'
1920
import {project} from '../mapping/schema'
@@ -109,14 +110,14 @@ export type TransactionReceipt = GetSrcType<typeof TransactionReceipt>
109110

110111
export const DebugFrame: Validator<DebugFrame> = object({
111112
type: STRING,
112-
input: BYTES,
113+
input: withDefault('0x', BYTES),
113114
calls: option(array(ref(() => DebugFrame)))
114115
})
115116

116117

117118
export interface DebugFrame {
118119
type: string
119-
input: Bytes
120+
input?: Bytes | null
120121
calls?: DebugFrame[] | null
121122
}
122123

0 commit comments

Comments
 (0)