• Karma : 35
  • Questions : 2
  • Answers : 3
  • Comments : 1

What is the proper way to request a list of structs?

```solidity pragma solidity ^0.4.17; contract AssetFactory { event NewAsset(uint id, string name); struct Asset { string name; ... more

Karma symbol 10
Total Karma earned answering this question
Up gray arrow normal 0
Total Votes for this question
Speach bubble 2
Total Comments to this question

When should I use public constant when writing solidity contract?

``` function getAsset(uint _id) view public returns(string) { return assets[_id].name; } ``` I'm trying to write a simple getter that ret... more

Karma symbol 35
Total Karma earned answering this question
Up gray arrow normal 3
Total Votes for this question
Speach bubble 3
Total Comments to this question