Lesson 3: gas fee #436
-
Hi everyone! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @nargeslein I think is up to you, and how much you want to ensure the transactions on your contract will succeed or not. It's also true that 10000000000 Wei is not significant to represent a real impact on the price so the gas difference would be despicable I think using this margins is more like a measure to ensure success rather than a bad practice. Let's see if @PatrickAlphaC has another opinion on this. best regards, Cromewar. |
Beta Was this translation helpful? Give feedback.
-
Great question!
View functions are only free if a simulator runs them, when we call a Does that make sense? |
Beta Was this translation helpful? Give feedback.
Great question!
view
functions are free to call from off-chain! However... if a smart contract calls a view function in the transaction, it has to pay the gas fees to view it, otherwise it won't know what the price is!View functions are only free if a simulator runs them, when we call a
view
function in remix, we actually only simulate calling it. When a smart contract calls it, it calls it with gas!Does that make sense?