Skip to content

Commit 4822d38

Browse files
author
colinlyguo
committed
fix
1 parent cb87c7a commit 4822d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
291291
// | z | y | kzg_commitment | kzg_proof |
292292
// |---------|---------|----------------|-----------|
293293
// | bytes32 | bytes32 | bytes48 | bytes48 |
294-
copy(taskDetail.KzgProof[:], dbBatch.BlobDataProof[112:160])
295-
copy(taskDetail.KzgCommitment[:], dbBatch.BlobDataProof[64:112])
294+
taskDetail.KzgProof = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[112:160]))
295+
taskDetail.KzgCommitment = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[64:112]))
296296
taskDetail.Challenge = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[0:32]))
297297
return taskDetail, nil
298298
}

0 commit comments

Comments
 (0)