5

Show Image

as you can see the image above, the function 'custLogIn' is view type (free on ether) but after deploy the contract trhough Remix, it changed into non-free function.

I want to know about it and change into ether free function. please give your ideas. thank you.

mecha kucha
  • 111
  • 1
  • 2
  • 10

1 Answers1

13

Pure and view functions still cost gas if they are called internally from another function. They are only free if they are called externally, from outside of the blockchain.

This stackoverflow answer goes into greater depth on this topic.

Carter
  • 3,053
  • 1
  • 17
  • 22