How do I calculate the gasfee for a call to a function, which increments an uint globally?
uint index;
function addUp () public returns (uint result) {
index += 1; // increment value
result = index; //return it
}
Where should I start to get an answer for my question?