Questions tagged [local-variables]
The local-variables tag has no usage guidance.
2
questions
6
votes
1
answer
369
views
Public variable getter shows as transaction in Remix
As of Solidity 0.6.0+ compiler, my remix shows getter functions, built by public variables, as transactions and, therefore, do not return the value. I searched the solidity 0.6.0 breaking changes but ...
1
vote
1
answer
584
views
What is the most gas efficient way to initialise a struct?
Say I define a struct named MyStruct and a local variable called myStruct, what is the most gas efficient way to assign/update 1 or more fields/members of myStruct? If I wanted to assign a new value ...