from web3 import Web3
import json
from web3.providers.rpc import HTTPProvider
contractAddress = '0xmasked'
web3 = Web3(HTTPProvider('https://mainnet.infura.io'))
with open('contract.abi', 'r') as abi_definition:
abi = json.load(abi_definition)
fContract = web3.eth.contract(abi,contractAddress)
Has anyone encountered the following error? From what I see I'm calling two arguments not three.
TypeError: contract() takes from 1 to 2 positional arguments but 3 were given