Read-only methods are now view/pure, not constant
See original GitHub issueThe Contract page mentions
Read-Only Methods (constant)
and a bit below Write Methods (non-constant)
.
From my understanding, methods cannot be constant
anymore, and this keyword has been replaced with the more specific view
and pure
keywords. See for eg. here.
I think we should update the documentation to reflect this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Exceeds block gas limit error to call view functions
Can anyone tell me if this is a problem with the Ganache client or is it a legit constraint that read only (view,...
Read more >Solidity - View and Pure Functions - GeeksforGeeks
The view functions are read-only function, which ensures that state variables cannot be modified after calling them.
Read more >ViewPure / Videos Without Clutter
Honestly, what can it not be used for? Common uses include: Removing inappropriate ads and comments from videos to show kids; Removing unwanted...
Read more >Remix Documentation - Read the Docs
It warns for the methods which potentially should be constant/view/pure but are not. Example: function b(address a) public returns (bool) {.
Read more >Web Guide: Virtual Volumes Quick Start Guide
As always, please ensure you follow standard Pure Storage best practices for vSphere. Currently Purity//FA does not support vVols objects in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s perfect! Sorry for not answering faster, I caught a cold and have been feeling under the weather. Thanks for the update. 😃
No worries! Get well soon. 😃