You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/overledger/actions/read-from-a-smart-contract/read-from-smart-contract.mjs
+32-20Lines changed: 32 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,21 @@ export default {
24
24
label: "Function Name",
25
25
description: "The name of the function to call on the smart contract.",
26
26
},
27
-
inptParameters: {
27
+
inputParameters: {
28
28
type: "string[]",
29
-
label: "Input Parameters",
30
-
description: "The input parameters for the smart contract function, in JSON format.",
29
+
label: "Input Parameters - Stringified Objects",
30
+
description: "The input parameters for the smart contract function, in JSON string format. Example: `['{\"type\":\"string\",\"value\":\"param1\"}', '{\"type\":\"uint256\",\"value\":\"param2\"}']`",
31
31
optional: true,
32
32
},
33
33
smartContractId: {
34
-
propDefinition: [
35
-
overledger,
36
-
"smartContractId",
37
-
],
34
+
type: "string",
35
+
label: "Smart Contract ID",
36
+
description: "The ID/address of the smart contract to interact with.",
37
+
},
38
+
outputParameters: {
39
+
type: "string[]",
40
+
label: "Output Parameters",
41
+
description: "The type of output parameter required e.g., address, string",
0 commit comments