lib/src/ChainConfig.js
function(chain_id) {

        let i, len, network, network_name, ref;
        ref = Object.keys(_this.networks);

        for (i = 0, len = ref.length; i < len; i++) {

            network_name = ref[i];
            network = _this.networks[network_name];

            if (network.chain_id === chain_id) {

                _this.network_name = network_name;

                if (network.address_prefix) {
                    _this.address_prefix = network.address_prefix;
                    ecc_config.address_prefix = network.address_prefix;
                }

                // console.log("INFO    Configured for", network_name, ":", network.core_asset, "\n");

                return {
                    network_name: network_name,
                    network: network
                }
            }
        }

        if (!_this.network_name) {
            console.log("Unknown chain id (this may be a testnet)", chain_id);
        }

    }
function(chain_id) {

        let i, len, network, network_name, ref;
        ref = Object.keys(_this.networks);

        for (i = 0, len = ref.length; i < len; i++) {

            network_name = ref[i];
            network = _this.networks[network_name];

            if (network.chain_id === chain_id) {

                _this.network_name = network_name;

                if (network.address_prefix) {
                    _this.address_prefix = network.address_prefix;
                    ecc_config.address_prefix = network.address_prefix;
                }

                // console.log("INFO    Configured for", network_name, ":", network.core_asset, "\n");

                return {
                    network_name: network_name,
                    network: network
                }
            }
        }

        if (!_this.network_name) {
            console.log("Unknown chain id (this may be a testnet)", chain_id);
        }

    }
function ( chain_id ) { let i , len , network , network_name , ref ; ref = Object . keys ( _this . networks ) ; for ( i = 0 , len = ref . length ; i < len ; i ++ ) { network_name = ref [ i ] ; network = _this . networks [ network_name ] ; if ( network . chain_id === chain_id ) { _this . network_name = network_name ; if ( network . address_prefix ) { _this . address_prefix = network . address_prefix ; ecc_config . address_prefix = network . address_prefix ; } // console.log("INFO    Configured for", network_name, ":", network.core_asset, "\n"); return { network_name : network_name , network : network } } } if ( ! _this . network_name ) { console . log ( "Unknown chain id (this may be a testnet)" , chain_id ) ; } }
Set a few properties for known chain IDs.
Set a few properties for known chain IDs .