package org.adridadou.ethereum.provider;

import org.adridadou.ethereum.blockchain.BlockchainProxyRpc;
import org.adridadou.ethereum.EthereumFacade;
import org.adridadou.ethereum.blockchain.Web3JFacade;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;

/**
 * Created by davidroon on 27.04.16.
 * This code is released under Apache 2 license
 */
public class RpcEthereumFacadeProvider {

    public final static byte MAIN_CHAIN_ID = 0;
    public final static byte ROPSTEN_CHAIN_ID = 2;

    public EthereumFacade create(final String url, final Byte chainId) {
        return create(new Web3JFacade(Web3j.build(new HttpService(url))), chainId);
    }

    public EthereumFacade create(final Web3JFacade web3j, final Byte chainId) {
        return new EthereumFacade(new BlockchainProxyRpc(web3j, chainId));
    }
}

@@ -505,17 +505,17 @@
 IN_ID = 
-2
+3
 ;%0A%0A    p

fix chain ID