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
In the function set_gas_station_configuration parameter maxGasPrice is optional, however it is always added to body
fireblocks-sdk-py/fireblocks_sdk/sdk.py
Line 1947 in 39fb079
Calling function without max_gas_price is rejected with error "maxGasPrice must be string".
This change of code resolved issue for me:
Denis