Questions tagged [local-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
João Quintanilha's user avatar
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 ...
MShakeG's user avatar
  • 1,633