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

Fix: Map attributes in rust binding #1142

Merged
merged 6 commits into from
Aug 19, 2022

Conversation

cbrzn
Copy link
Contributor

@cbrzn cbrzn commented Aug 15, 2022

This PR aims to fix an error on build when if we wanted to create an attribute that was a map, i.e:

type Data {
    total_market_cap: Map! @annotate(type: "Map<String!, BigNumber!>!")
}

it would fail on rust wrappers. I went ahead and removed the ? if the object is a map, and it fixes the issue. I also went ahead and added tests for this.

…st-binding

Fix: Maps with custom values rust binding
dOrgJelli
dOrgJelli previously approved these changes Aug 17, 2022
@dOrgJelli dOrgJelli merged commit c41cc3b into origin-dev Aug 19, 2022
@dOrgJelli dOrgJelli deleted the fix/complex-map-in-rust-bindings branch August 22, 2022 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants