Skip to content

Error "maxGasPrice must be string" on set_gas_station_configuration #145

@denistom

Description

@denistom

In the function set_gas_station_configuration parameter maxGasPrice is optional, however it is always added to body

        body = {
            "gasThreshold": gas_threshold,
            "gasCap": gas_cap,
            "maxGasPrice": max_gas_price,
        }

"maxGasPrice": max_gas_price,

Calling function without max_gas_price is rejected with error "maxGasPrice must be string".

This change of code resolved issue for me:

        body = {
            "gasThreshold": gas_threshold,
            "gasCap": gas_cap #,
#optional            "maxGasPrice": max_gas_price,
        }
        if max_gas_price:
           body["maxGasPrice"]=max_gas_price

Denis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions