You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/04/07 09:37:36 UTC

[camel] branch CAMEL-17922/incorrect-default-value-supplier-for-mix-digest created (now 1ea0be98164)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a change to branch CAMEL-17922/incorrect-default-value-supplier-for-mix-digest
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 1ea0be98164 CAMEL-17922: Fix default value supplier for header MIX_DIGEST

This branch includes the following new commits:

     new 1ea0be98164 CAMEL-17922: Fix default value supplier for header MIX_DIGEST

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-17922: Fix default value supplier for header MIX_DIGEST

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-17922/incorrect-default-value-supplier-for-mix-digest
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1ea0be98164b055560626a9b6f84f83d73e4a6cd
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Thu Apr 7 11:37:03 2022 +0200

    CAMEL-17922: Fix default value supplier for header MIX_DIGEST
---
 .../src/main/java/org/apache/camel/component/web3j/Web3jProducer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jProducer.java b/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jProducer.java
index 2e8555fdd74..ae399824d78 100644
--- a/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jProducer.java
+++ b/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jProducer.java
@@ -730,7 +730,7 @@ public class Web3jProducer extends HeaderSelectorProducer {
     void ethSubmitWork(Message message) throws IOException {
         String nonce = message.getHeader(Web3jConstants.NONCE, configuration::getNonce, String.class);
         String headerPowHash = message.getHeader(Web3jConstants.HEADER_POW_HASH, configuration::getHeaderPowHash, String.class);
-        String mixDigest = message.getHeader(Web3jConstants.MIX_DIGEST, configuration::getHeaderPowHash, String.class);
+        String mixDigest = message.getHeader(Web3jConstants.MIX_DIGEST, configuration::getMixDigest, String.class);
         Request<?, EthSubmitWork> request = web3j.ethSubmitWork(nonce, headerPowHash, mixDigest);
         setRequestId(message, request);
         EthSubmitWork response = request.send();