wrap-cli icon indicating copy to clipboard operation
wrap-cli copied to clipboard

Fix: Map attributes in rust binding

Open cbrzn opened this issue 3 years ago • 0 comments

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.

cbrzn avatar Aug 15 '22 14:08 cbrzn