-
-
Notifications
You must be signed in to change notification settings - Fork 676
Closed
Description
const attributes: string[] = metadata
.get("attributes")!
.toArray()
.map((item: JSONValue, idx: number): string => {
const attrId: string = id + "-" + idx.toString();
const attribute = item.toObject();
const attr = new APEAttr(attrId);
attr.trait_type = attribute.get("trait_type")!.toString();
attr.value = attribute.get("value")!.toString();
attr.save();
return attrId;
});
Error:
⠋ Compile subgraphERROR TS1140: Type argument expected.
.map((item: JSONValue, idx: number): string => {
^
in src/mapping.ts(55,13)
✖ Failed to compile subgraph: Failed to compile data source mapping: 1 compile error(s)
;; INFO asc module.ts --textFile module.wat --binaryFile module.wasm -O3 --runtime stub
;; ERROR TS1140: Type argument expected.
;;
;; arr.map((item: number, idx: number): number => {
;; ^
;; in module.ts(2,8)
(module
;; FAILURE 1 compile error(s)
)
Metadata
Metadata
Assignees
Labels
No labels