dist/chain/storage/get.js
function getChain(storage, name) {
    if (storage[GET_CHAIN_METHOD]) {
        return storage[GET_CHAIN_METHOD](name);
    }
    var chain = Object.assign({}, storage[name]);
    chain['$chainId'] = (0, _Util.generateUUID)();
    return Object.assign({}, chain);
}
function getChain(storage, name) {
    if (storage[GET_CHAIN_METHOD]) {
        return storage[GET_CHAIN_METHOD](name);
    }
    var chain = Object.assign({}, storage[name]);
    chain['$chainId'] = (0, _Util.generateUUID)();
    return Object.assign({}, chain);
}
function getChain ( storage , name ) { if ( storage [ GET_CHAIN_METHOD ] ) { return storage [ GET_CHAIN_METHOD ] ( name ) ; } var chain = Object . assign ( { } , storage [ name ] ) ; chain [ '$chainId' ] = ( 0 , _Util . generateUUID ) ( ) ; return Object . assign ( { } , chain ) ; }
Gets the chain instance from storage
@param storage
@param name
Gets the chain instance from storage