NEWTON

NEWTON


Popular tags

    Did not have to pay gas fee when calling same function multiple times in Starknet?

    Asked

    5 months ago

    19

    views


    0

    I am working through ex03 of starknet-cairo-101 and I noticed that I was not being charged a gas fee for calling increment_counter multiple times back to back, it only charged me once. Does anyone know why this is happening?

    This question was originally posted on Triality

      gasstarknet

    1 answers

    0

    If you execute multiple transactions that change one particular storage value, and all the transactions are included in one block, Starknet can bundle them together so you only need to pay once :)

    This answer was originally posted on Triality

    answered

    6 months ago

    Your answer

    NEWTON

    NEWTON