whole_func_string: function getChainContext(storage, chainId, field) {
      if (storage[GET_CHAIN_CONTEXT_METHOD]) {
          return storage[GET_CHAIN_CONTEXT_METHOD](chainId, field);
      }
      if (storage[chainId]) {
          return storage[chainId][field];
      }
  }
func_code_string: function getChainContext(storage, chainId, field) {
      if (storage[GET_CHAIN_CONTEXT_METHOD]) {
          return storage[GET_CHAIN_CONTEXT_METHOD](chainId, field);
      }
      if (storage[chainId]) {
          return storage[chainId][field];
      }
  }
func_documentation_string: Gets the chain context value from storage
  @param storage
  @param chainId
  @param field
  @returns {*}