Skip to content

Replace from_slice with from_json for OBIDecode and message extensions #224

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

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

Conversation

leopardracer
Copy link

This PR replaces the usage of try_from_slice with try_from_json in several files:

  • In the main contract file, changes the deserialization method for Oracle response results
  • In vault contract and mock implementations, updates the message extension method from extend_from_slice to extend_from_json

This change improves the handling of JSON data in the Oracle response processing and message extensions, making the deserialization process more appropriate for the data format being used.

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