Skip to content

Commit

Permalink
EVM traces: allow suicide calls to zero address
Browse files Browse the repository at this point in the history
  • Loading branch information
eldargab committed Aug 22, 2024
1 parent 25ee150 commit 05ccf8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/evm-processor",
"comment": "traces: allow suicide calls to zero address",
"type": "patch"
}
],
"packageName": "@subsquid/evm-processor"
}
4 changes: 2 additions & 2 deletions evm/evm-processor/src/ds-rpc/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function getDebugFrameValidator(fields: FieldSelection['trace']) {

let Call = object({
...base,
to: BYTES,
to: withDefault('0x0000000000000000000000000000000000000000', BYTES),
input: BYTES,
...project({
from: fields?.callFrom,
Expand All @@ -144,7 +144,7 @@ function getDebugFrameValidator(fields: FieldSelection['trace']) {

let Suicide = object({
...base,
to: BYTES,
to: withDefault('0x0000000000000000000000000000000000000000', BYTES),
...project({
from: fields?.suicideAddress,
value: fields?.suicideBalance
Expand Down

0 comments on commit 05ccf8a

Please sign in to comment.