Skip to content

refactor(starknet): change BlockIdentifier from string to typed uint64#3775

Open
0xsamalt wants to merge 1 commit into
NethermindEth:mainfrom
0xsamalt:fix/block-identifier-type
Open

refactor(starknet): change BlockIdentifier from string to typed uint64#3775
0xsamalt wants to merge 1 commit into
NethermindEth:mainfrom
0xsamalt:fix/block-identifier-type

Conversation

@0xsamalt

Copy link
Copy Markdown
  • Introduces starknet.BlockIdentifier as a named uint64 type with custom UnmarshalJSON that handles both hex string (ex: "0x...") and bare integers.
  • Changes PreConfirmedDeltaUpdate.BlockIdentifier and PreConfirmedBlock.BlockIdentifier from string to the new BlockIdentifier type.
  • Changes pending.PreConfirmed.BlockIdentifier from string to uint64 (raw, to avoid a circular import from core/pending → starknet).
  • Updates all mocks, adapters, and tests to match the new types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant