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: dr queries return optionals #193

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Conversation

gluax
Copy link
Collaborator

@gluax gluax commented Jul 22, 2024

Motivation

For consistency, since some did and some didn't.

Explanation of Changes

All queries that return a non-employable object now return an option of their type.
So if something returns a vec/map, we will return an empty version rather than null.

Testing

All tests still pass.

Related PRs and Issues

We are waiting for sedaprotocol/seda-common-rs#13 to be merged so we can point common to main first.

Closes #184.

@gluax gluax self-assigned this Jul 22, 2024
Copy link
Member

@Thomasvdam Thomasvdam left a comment

Choose a reason for hiding this comment

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

We should also make the change in the overlay and coordinate the deployment of the new contract and updated overlay WASM.

contract/src/msgs/data_requests/query.rs Outdated Show resolved Hide resolved
contract/src/msgs/data_requests/query.rs Outdated Show resolved Hide resolved
@gluax gluax merged commit e33ac2a into main Jul 22, 2024
2 checks passed
@gluax gluax deleted the refactor/consistent-optionals branch July 22, 2024 15:07
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.

♻️ Methods Shoud return Null
2 participants