Skip to content

Commit

Permalink
op-service: Add omitempty to EIP1559Params (#12582)
Browse files Browse the repository at this point in the history
* op-deployer: Add support for inspecting l2 semvers

* goimports

* add factory targets

* op-service: Add omitempty to EIP1559Params

These parameters are only valid for Holocene, and cause errors during unmarshaling on older op-node versions.
  • Loading branch information
mslipper authored Oct 22, 2024
1 parent 1ad93ba commit e372a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-service/eth/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ type SystemConfig struct {
// EIP1559Params contains the Holocene-encoded EIP-1559 parameters. This
// value will be 0 if Holocene is not active, or if derivation has yet to
// process any EIP_1559_PARAMS system config update events.
EIP1559Params Bytes8 `json:"eip1559Params"`
EIP1559Params Bytes8 `json:"eip1559Params,omitempty"`
// More fields can be added for future SystemConfig versions.
}

Expand Down

0 comments on commit e372a2d

Please sign in to comment.