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: README.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,28 +234,23 @@ For `setMood`, we describe each field below:
234
234
235
235
- name: `setMood`, self explanatory
236
236
- type: `function`, self explanatory
237
-
- constant: should be `false` because this is a functionthat updates data
238
237
- outputs: should be `[]` because this does not return anything
239
238
- stateMutability: This is `nonpayable` because this functiondoes not accept Ether
240
-
- payable: 'false` since this does not accept Ether
241
239
- inputs: this is an array of inputs to the function. Each object in the array should have `internalType`, `name` and `type`, and these are `string`, `_mood` and `string` respectively
242
240
243
241
For `getMood`, we describe each field below:
244
242
245
243
- name: `getMood`, self explanatory
246
244
- type: `function`, self explanatory
247
-
- constant: should be `true` because this is a function that retrieves data. Even though this is a function, it is basically a getter
248
245
- outputs: this has the same type as `inputs`in`setMood`. For `internalType`, `name` and `type`, this should be `string`, `""`, and `string` respectively
249
246
- stateMutability: This is `view` because this is a view function
250
-
- payable: 'false` since this does not accept Ether
251
247
- inputs: this has no arguments so this should be `[]`
0 commit comments