Timeline for How to fix? warning (2018) function state mutability can be restricted to view
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22 at 17:12 | answer | added | natewelch_ | timeline score: 0 | |
Mar 9 at 15:52 | history | edited | Ismael♦ | CC BY-SA 4.0 |
Fix title
|
Mar 9 at 14:02 | review | Close votes | |||
Mar 25 at 3:07 | |||||
Mar 9 at 13:55 | review | Low quality posts | |||
Mar 10 at 4:55 | |||||
Mar 9 at 13:54 | comment | added | Majd TL | the function does not change the state of the contract and therefore it cannot be declared as external. It should be view because it only read and compare data of contract but does not change it. you need to add the withdraw code that change the state of the contract and then it can be declared as external and called by a transaction | |
Mar 9 at 13:52 | history | edited | Majd TL | CC BY-SA 4.0 |
deleted 1 character in body
|
S Mar 9 at 13:34 | review | First questions | |||
Mar 9 at 15:52 | |||||
S Mar 9 at 13:34 | history | asked | ansoiri98 | CC BY-SA 4.0 |