Skip to content

Distinguish between read and write operations in contract calls #611

@moliholy

Description

@moliholy

Currently both read and write operations look the same in the list.

Example

Image

Here we can see that flip is a write operation, as it mutates the storage. It will broadcast an extrinsic and won't return any data other than the consumed weight.

On the other hand, the get is an actual call that does not cost any fee and returns the value of the boolean stored in the contract.

I propose to differentiate them by:

  1. Placing an icon/emoji on the left depending on whether it's a read or write operation.
  2. Showcasing at the beginning of the right-most description of the call that, in case of a write operation, it will cost fee (or simply that it is a write operation).

Metadata

Metadata

Assignees

Labels

DevExChange to improve the Developer Experiencegood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions