Gets the chain instance from storage
@param storage
@param name
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);
}