Skip to content

Commit

Permalink
update evm trace schema definition (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgroul authored Feb 21, 2024
1 parent 0af3800 commit a9db3ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/evm-processor",
"comment": "update evm trace schema definition",
"type": "minor"
}
],
"packageName": "@subsquid/evm-processor"
}
2 changes: 1 addition & 1 deletion evm/evm-processor/src/interfaces/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface EvmTraceCreateAction {
export interface EvmTraceCreateResult {
gasUsed: bigint
code: Bytes
address: Bytes20
address?: Bytes20
}


Expand Down
6 changes: 3 additions & 3 deletions evm/evm-processor/src/mapping/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export function getTraceFrameValidator(fields: FieldSelection['trace'], forArchi
address: fields?.createResultAddress
}, {
gasUsed: QTY,
code: BYTES,
address: BYTES
code: withDefault('0x', BYTES),
address: option(BYTES)
})

let TraceCreate = object({
Expand Down Expand Up @@ -158,7 +158,7 @@ export function getTraceFrameValidator(fields: FieldSelection['trace'], forArchi
output: fields?.callResultOutput
}, {
gasUsed: QTY,
output: BYTES
output: withDefault('0x', BYTES)
})

let TraceCall = object({
Expand Down

0 comments on commit a9db3ca

Please sign in to comment.