So I have a deployed contract with address0. I can easily interact with it using my index.html like so:
import contract_artifacts from '../../build/contracts/contract.json' var contract0 = contract(contract_artifacts);
Then I can call it's functions like so:
But I also have another previously deployed contract with address1. The contract is the same as the contract with the address0. I see only one way to work with the contract1:
var abiarray = [ here goes pretty big abi ]; contract1 = web3.eth.contract(abiarray).at(address1);
Is there another way to do it without including the whole abi of the contract? Because I already have it in contract_artifacts, I just don't know how to get it from there. Thank you.