Skip to content

Commit 6b062a7

Browse files
authored
Merge pull request #27 from lambdaclass/fix_ledger_hash_comparison
Fix Ledger hashes comparison
2 parents 216b65a + 122a6ab commit 6b062a7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

aggregator/internal/pkg/aggregator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (agg *Aggregator) handleBlsAggServiceResponse(blsAggServiceResp blsagg.BlsA
278278
"batchIdentifierHash", "0x"+hex.EncodeToString(batchIdentifierHash[:]))
279279

280280
for i := 0; i < MaxSentTxRetries; i++ {
281-
_, err = agg.sendAggregatedResponse(batchData.BatchMerkleRoot, batchData.SenderAddress, nonSignerStakesAndSignature)
281+
receipt, err := agg.sendAggregatedResponse(batchData.BatchMerkleRoot, batchData.SenderAddress, nonSignerStakesAndSignature)
282282
if err == nil {
283283
agg.logger.Info("Gas cost used to send aggregated response", "gasUsed", receipt.GasUsed)
284284

operator/mina/lib/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ fn check_pub_inputs(
139139
&state
140140
.body
141141
.blockchain_state
142-
.staged_ledger_hash
143-
.non_snark
144-
.ledger_hash
142+
.ledger_proof_statement
143+
.target
144+
.first_pass_ledger
145145
});
146146
if pub_inputs
147147
.candidate_chain_ledger_hashes

0 commit comments

Comments
 (0)