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