Skip to content

Commit

Permalink
Fix the gas_strategy infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
barak manos committed Apr 9, 2024
1 parent 46cfba0 commit 3309a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fastlane_bot/config/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class ConfigNetwork(ConfigBase):

# HOOKS
#######################################################################################
@staticmethod
def gas_strategy(web3):
return {
"maxFeePerGas": web3.eth.gas_price,
Expand Down
2 changes: 1 addition & 1 deletion fastlane_bot/helpers/txhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _update_transaction(self, tx: dict):
}
for access_item in result["accessList"]
]
tx.update(self.cfg.gas_strategy(self.cfg.w3))
tx.update(self.cfg.network.gas_strategy(self.cfg.w3))

def _sign_transaction(self, tx: dict) -> str:
return self.cfg.w3.eth.account.sign_transaction(tx, self.cfg.ETH_PRIVATE_KEY_BE_CAREFUL).rawTransaction
Expand Down

0 comments on commit 3309a77

Please sign in to comment.