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

add bytes to string modifier for solana contracts #1040

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

Conversation

EasterTheBunny
Copy link
Collaborator

@EasterTheBunny EasterTheBunny commented Feb 19, 2025

@EasterTheBunny EasterTheBunny marked this pull request as ready for review February 21, 2025 14:57
@EasterTheBunny EasterTheBunny requested review from nolag and a team as code owners February 21, 2025 14:57
case reflect.Array, reflect.Slice:
return fmt.Errorf("%w: cannot set a field from an array or slice", types.ErrInvalidType)
case reflect.Struct:
case reflect.Map:
Copy link
Contributor

Choose a reason for hiding this comment

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

Glad to see this added! Should we add map support to the other helpers as well?

  • SetValueFromPath
  • ApplyValue
  • RetypeToOffChain

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. I exported the helpers and added map support to both

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.

3 participants