Skip to content

Commit

Permalink
Merge pull request #81 from 0xAurelius/hotfix/fix-middleware
Browse files Browse the repository at this point in the history
Fix broken import
  • Loading branch information
0xAurelius authored Sep 11, 2024
2 parents fecb513 + 7aee235 commit 43f89f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/staking_rewards/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import math
import traceback

from web3.middleware import geth_poa_middleware
from web3.middleware import ExtraDataToPOAMiddleware
from discord.ext import tasks

from ..constants import SKLIMA_ADDRESS
Expand All @@ -18,7 +18,7 @@

# Initialize web3
web3 = get_polygon_web3()
web3.middleware_onion.inject(geth_poa_middleware, layer=0)
web3.middleware_onion.inject(ExtraDataToPOAMiddleware, layer=0)

# Load ABIs
SKLIMA_ABI = load_abi('sklima.json')
Expand Down

0 comments on commit 43f89f9

Please sign in to comment.