Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [state-variable]

The tag has no usage guidance.

0
votes
1answer
338 views

Calling a state-changing function via web3

I am trying to call a function which changes the length of a global storage array. At first I thought that the problem was related to the array-length changing attempt. But I have finally come to ...
9
votes
2answers
5k views

Local variable and state variable, and the difference between them

I am new to solidity. When I read the solidity documentation, it says local variable and state variable. But I can't find the definition of the two terms. Can anyone explain the meaning of local ...
7
votes
3answers
3k views

How to get the cost (in gas) of the non-constant function call?

In my understanding, there are some situations, where the compiler can't calculate, how much Gas it takes to complete the function call. The most obvious example - when your function is calling some ...