Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor snforge_std - typed_checked_cheatcode #2833

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kkawula
Copy link
Collaborator

@kkawula kkawula commented Jan 9, 2025

I am happy to announce the first pr from our mailing list! 🔥🔥
Thanks Peter for your contribution

Introduced changes

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

@kkawula kkawula changed the title snforge_std - typed_checked_cheatcode Refactor snforge_std - typed_checked_cheatcode Jan 9, 2025
@kkawula kkawula marked this pull request as ready for review January 9, 2025 14:01
}
}

pub(crate) fn typed_checked_cheatcode<const selector: felt252, T, +Serde<T>>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub(crate) fn typed_checked_cheatcode<const selector: felt252, T, +Serde<T>>(
pub(crate) fn typed_cheatcode<const selector: felt252, T, +Serde<T>>(

pub(crate) fn handle_cheatcode(input: Span<felt252>) -> Span<felt252> {
let first = *input.at(0);
let input = input.slice(1, input.len() - 1);
pub(crate) fn checked_cheatcode<const selector: felt252>(input: Span<felt252>) -> Span<felt252> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be pub at all?

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