Skip to content

Client: A solution if the Gas Fees make the transaction fail #1

@Ophiase

Description

@Ophiase

I'm not authorized to modify the code during the judging session.
When you are using the client, if the invoke functions fails (eg: commit = update_prediction)
It's because you need to adjust manually the gas fee limits in : oracle_client/contract.py

28: # LINE TO ADJUST
29: RESSOURCE_BOUND_COMMON = ResourceBounds(329806, 60932837875699) 
30: # try to increase with : ResourceBounds(329806, 90932837875699)

Be careful, if the maximum gas value allowed is too high, the transaction will be reverted on Sepolia.

I didn't find during the project a way to automatically use the maximum amount possible.
And because the fees vary a lot between day and hours, It's hard to estimate a proper bound without overshooting (a bound too high also implies a rejection on etherum).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions