We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40034f commit a2c372dCopy full SHA for a2c372d
kleros-sdk/src/dataMappings/actions/callAction.ts
@@ -21,5 +21,8 @@ export const callAction = async (mapping: AbiCallMapping) => {
21
args,
22
});
23
24
- return createResultObject(data, seek, populate);
+ // in case of single value returns, populate the data as {value : data}
25
+ const sourceData = typeof data !== "object" ? { value: data } : data;
26
+
27
+ return createResultObject(sourceData, seek, populate);
28
};
0 commit comments