Skip to content

Conversation

@sashass1315
Copy link

The README under docs/hint_processor/builtin_hint_processor was using legacy types and call patterns that no longer match the codebase. I updated all examples and guidance to the current API: hint functions now use VirtualMachine, Felt252 constants and return HintError; add_hint requires Rc; BuiltinHintProcessor::new takes a preset HashMap<String, Rc> and a RunResources; cairo_run now receives program bytes together with a CairoRunConfig. Error handling was also corrected to use HintError::CustomHint. These changes are verified against builtin_hint_processor_definition.rs, cairo_run.rs, hint_errors.rs and the canonical example at examples/custom_hint/src/main.rs to ensure accuracy and prevent confusion for users integrating custom hints.

@gabrielbosio
Copy link
Collaborator

Hi @sashass1315, thanks for contributing, Could you please add the corresponding changelog entry?

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.

2 participants