Skip to content

Commit

Permalink
evm: make DebugFrame.input optional and add default value (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash authored Jul 22, 2024
1 parent 9a75781 commit b87ffb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/evm-processor",
"comment": "make `DebugFrame.input` optional and add default value",
"type": "patch"
}
],
"packageName": "@subsquid/evm-processor"
}
7 changes: 4 additions & 3 deletions evm/evm-processor/src/ds-rpc/rpc-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
ref,
SMALL_QTY,
STRING,
Validator
Validator,
withDefault
} from '@subsquid/util-internal-validation'
import {Bytes, Bytes20, Bytes32, Qty} from '../interfaces/base'
import {project} from '../mapping/schema'
Expand Down Expand Up @@ -109,14 +110,14 @@ export type TransactionReceipt = GetSrcType<typeof TransactionReceipt>

export const DebugFrame: Validator<DebugFrame> = object({
type: STRING,
input: BYTES,
input: withDefault('0x', BYTES),
calls: option(array(ref(() => DebugFrame)))
})


export interface DebugFrame {
type: string
input: Bytes
input?: Bytes | null
calls?: DebugFrame[] | null
}

Expand Down

0 comments on commit b87ffb6

Please sign in to comment.