I've been teaching myself ethereum via the stack solidity/truffle/truffle-contract/testrpc/metamask
. I built a small dApp that runs on testrpc with proper unit tests which work great. I've written a function that I truffle serve
that loads my contract named VEX from the local the file f_deployed_contract
$.getJSON(f_deployed_contract, function(data) {
App.contracts.VEX = TruffleContract(data);
App.contracts.VEX.setProvider(App.web3Provider);
});
Everything works! I was excited, so I deployed the contract of the working solidity code using a combination of Remix and Ether Wallet to the mainnet. It was mined and now lives here:
https://etherscan.io/tx/0xe5e6c5d463815e339a2aac2e92594de595e2029e6448997799871d8cb2a5728b
Now, how do I adjust my TruffleContract
so I can use my dApp with metamask on the mainnet?