title: Calling a hedera smart contract function with a simple comparison operator fails with CONTRACT_REVERT_EXECUTED status
body: <p>Sorry for the newbie question. I am experimenting with hedera Smart Contracts. Whenever trying to call a simple function which compares the uint argument with a uint member of the contract I systematically get a  CONTRACT_REVERT_EXECUTED status.</p>
  <p><strong>solidity</strong></p>
  <pre><code>    function compare(uint number_) public view returns (bool){
          
          return (number_ &gt; secret_number);
      }
  </code></pre>
  <p><strong>java</strong></p>
  <pre><code>    public static boolean compare(Client client, ContractId contractId, int guess) throws TimeoutException, PrecheckStatusException
      {
           // Calls a function of the smart contract
          ContractCallQuery contractQuery = new ContractCallQuery()
               //Set the gas for the query
               .setGas(100_000) 
               //Set the contract ID to return the request for
               .setContractId(contractId)
               //Set the function of the contract to call 
               .setFunction(&quot;compare&quot;, new ContractFunctionParameters().addUint32(guess))
               //Set the query payment for the node returning the request
               //This value must cover the cost of the request otherwise will fail 
               .setQueryPayment(new Hbar(4)); 
  
          //Submit to a Hedera network
          ContractFunctionResult getMessage = contractQuery.execute(client);
  
          
          return getMessage.getBool(0);
      }
  </code></pre>
  <p><strong>Exception</strong>
  *
  Exception in thread &quot;main&quot; com.hedera.hashgraph.sdk.PrecheckStatusException: Hedera transaction <code>0.0.34318751@1651508840.487521537</code> failed pre-check with the status <code>CONTRACT_REVERT_EXECUTED</code>
  at com.hedera.hashgraph.sdk.Executable$GrpcRequest.mapStatusException(Executable.java:457)
  at com.hedera.hashgraph.sdk.Executable.execute(Executable.java:241)
  at com.hedera.hashgraph.sdk.Query.execute(Query.java:29)
  at com.hedera.hashgraph.sdk.Executable.execute(Executable.java:189)
  at com.hedera.hashgraph.sdk.Query.execute(Query.java:29)
  at hbarTexting.GuessNumberSmartContract.compare(GuessNumberSmartContract.java:132)
  at hbarTexting.GuessNumberSmartContract.main(GuessNumberSmartContract.java:257)
  *</p>
  <p>What am I doing wrong here?</p>
  <p>Any help greatly appreciated!</p>