Skip to content

Commit

Permalink
Merge pull request #81 from skalenetwork/fix/SKALE-1988-ws-error-on-p…
Browse files Browse the repository at this point in the history
…oa-chain

SKALE-1988 fix error on POA chain
  • Loading branch information
badrogger authored Jan 16, 2020
2 parents 4778b30 + 3836306 commit c112f13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skale/manager_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import logging

from web3 import Web3
from web3.middleware import geth_poa_middleware

import skale.contracts as contracts
from skale.wallets import BaseWallet
from skale.contracts_info import CONTRACTS_INFO
Expand All @@ -45,6 +47,7 @@ def __init__(self, endpoint, abi_filepath, wallet=None):
self._abi_filepath = abi_filepath
self._endpoint = endpoint
self.web3 = Web3(provider)
self.web3.middleware_onion.inject(geth_poa_middleware, layer=0) # todo: may cause issues
self.abi = get_abi(abi_filepath)
self.__contracts = {}
self.__contracts_info = {}
Expand Down

0 comments on commit c112f13

Please sign in to comment.