Open denistom opened 9 months ago
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, }
https://github.com/fireblocks/fireblocks-sdk-py/blob/39fb0790f9a79922dc70e4e292d4530a74b89d8e/fireblocks_sdk/sdk.py#L1947
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
In the function set_gas_station_configuration parameter maxGasPrice is optional, however it is always added to body
https://github.com/fireblocks/fireblocks-sdk-py/blob/39fb0790f9a79922dc70e4e292d4530a74b89d8e/fireblocks_sdk/sdk.py#L1947
Calling function without max_gas_price is rejected with error "maxGasPrice must be string".
This change of code resolved issue for me:
Denis