Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix types
  • Loading branch information
Ivan Loboda committed Jan 27, 2022
commit 4e86f4ebeb9a60489179194c6662ed74376aa424
2 changes: 1 addition & 1 deletion proxy/plugin/gas_price_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, solana_client) -> None:

def get_min_gas_price(self):
if MINIMAL_GAS_PRICE is not None:
return hex(MINIMAL_GAS_PRICE)
return int(MINIMAL_GAS_PRICE)
self.try_update_gas_price()
return self.min_gas_price

Expand Down
2 changes: 1 addition & 1 deletion proxy/plugin/solana_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def net_version(self):
return self.neon_config_dict['NEON_CHAIN_ID']

def eth_gasPrice(self):
return self.gas_price_calculator.get_min_gas_price()
return hex(self.gas_price_calculator.get_min_gas_price())

def eth_estimateGas(self, param):
try:
Expand Down