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?

@gabrielbosio
Copy link
Collaborator

Sorry, @sashass1315, because this PR only changes documentation the changelog entry is not necessary, my bad. Could you please revert the commit that updates the changelog? Thanks!

@gabrielbosio gabrielbosio added the documentation Improvements or additions to documentation label Dec 22, 2025
@sashass1315
Copy link
Author

Sorry, @sashass1315, because this PR only changes documentation the changelog entry is not necessary, my bad. Could you please revert the commit that updates the changelog? Thanks!

updated

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants