question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Read-only methods are now view/pure, not constant

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samlafcommented, Dec 1, 2021

That’s perfect! Sorry for not answering faster, I caught a cold and have been feeling under the weather. Thanks for the update. 😃

0reactions
ricmoocommented, Dec 1, 2021

No worries! Get well soon. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found