Skip to content

Commit

Permalink
Merge pull request #180 from UnitapApp/fix/gas-price-for-solana-light…
Browse files Browse the repository at this point in the history
…ning

gas price error dont throw
  • Loading branch information
Mohamad Bastin authored Nov 8, 2023
2 parents ff1aea8 + 0e8f03d commit 9ff6f5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions faucet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ def get_manager_balance(self):
)

if self.chain_type == NetworkTypes.EVM or int(self.chain_id) == 500:
if self.chain_id == 500:
logging.debug("chain XDC NONEVM is checking its balances")
# if self.chain_id == 500:
# logging.debug("chain XDC NONEVM is checking its balances")
funds = EVMFundManager(self).w3.eth.get_balance(self.fund_manager_address)
return funds

Expand Down Expand Up @@ -326,8 +326,8 @@ def gas_price(self):
from faucet.faucet_manager.fund_manager import EVMFundManager

return EVMFundManager(self).w3.eth.gas_price
except Exception as e:
logging.exception(f"Error getting gas price for {self.chain_name} error is {e}")
except: # noqa: E722
logging.exception(f"Error getting gas price for {self.chain_name}")
return self.max_gas_price + 1

@property
Expand Down

0 comments on commit 9ff6f5e

Please sign in to comment.