[go: up one dir, main page]

Etherlink/EVM node: use new chain_id type instead of quantity

Checklist

  • Provide automatic testing.
  • Add an item in the changelog

What

This MR introduces a static distinction between chain ids and the other "quantities" handled by the EVM node.

Why

To avoid accidentally mixing chain ids with numeric quantities and to get more readable error messages.

How

  • The first commit introduces the new type in the Ethereum_types module, the implementation closely mirrors the quantity type.
  • The second commit makes use of this type instead of quantity.

Manually testing the MR

Edited by Raphaël Cauderlier

Merge request reports

Loading