@@ -98,10 +98,9 @@ private IexecHubABILegacy.TaskContributeEventResponse sendContributeTransaction(
9898 }
9999
100100 if (contributeEvent != null && contributeEvent .log != null &&
101- (!contributeEvent .log .getType ().equals (PENDING_RECEIPT_STATUS )
102- || isStatusValidOnChainAfterPendingReceipt (chainTaskId , CONTRIBUTED , this ::isContributionStatusValidOnChain ))) {
103- log .info ("Contributed [chainTaskId:{}, resultHash:{}, gasUsed:{}]" ,
104- chainTaskId , resultHash , contributeReceipt .getGasUsed ());
101+ isStatusValidOnChainAfterPendingReceipt (chainTaskId , CONTRIBUTED , this ::isContributionStatusValidOnChain )) {
102+ log .info ("Contributed [chainTaskId:{}, resultHash:{}, gasUsed:{}, log:{}]" ,
103+ chainTaskId , resultHash , contributeReceipt .getGasUsed (), contributeEvent .log );
105104 return contributeEvent ;
106105 }
107106
@@ -144,10 +143,9 @@ private IexecHubABILegacy.TaskRevealEventResponse sendRevealTransaction(String c
144143 }
145144
146145 if (revealEvent != null && revealEvent .log != null &&
147- (!revealEvent .log .getType ().equals (PENDING_RECEIPT_STATUS )
148- || isStatusValidOnChainAfterPendingReceipt (chainTaskId , REVEALED , this ::isContributionStatusValidOnChain ))) {
149- log .info ("Revealed [chainTaskId:{}, resultDigest:{}, gasUsed:{}]" ,
150- chainTaskId , resultDigest , revealReceipt .getGasUsed ());
146+ isStatusValidOnChainAfterPendingReceipt (chainTaskId , REVEALED , this ::isContributionStatusValidOnChain )) {
147+ log .info ("Revealed [chainTaskId:{}, resultDigest:{}, gasUsed:{}, log:{}]" ,
148+ chainTaskId , resultDigest , revealReceipt .getGasUsed (), revealEvent .log );
151149 return revealEvent ;
152150 }
153151
0 commit comments