all: fix unnecessary conversion (#1527)

Co-authored-by: wit <wit765765346@gmail>
This commit is contained in:
wit liu 2025-09-21 19:45:42 +08:00 committed by GitHub
parent d9ae317a38
commit 7d5a03a46e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ func TestGetM1M2FromCheckpointHeader(t *testing.T) {
epoch := uint64(900)
config := &params.ChainConfig{
XDPoS: &params.XDPoSConfig{
Epoch: uint64(epoch),
Epoch: epoch,
},
}
testMoveM2 := []uint64{0, 0, 0, 1, 1, 1, 2, 2, 2, 0, 0, 0, 1, 1, 1, 2, 2, 2}

View file

@ -509,7 +509,7 @@ func (r *receiptLogs) DecodeRLP(s *rlp.Stream) error {
}
r.Logs = make([]*types.Log, len(stored.Logs))
for i, log := range stored.Logs {
r.Logs[i] = (*types.Log)(log)
r.Logs[i] = log
}
return nil
}

View file

@ -416,7 +416,7 @@ func parseTestData(filePath string) MultiRangeProof {
// var result map[string]interface{}
result := BulletProof{}
json.Unmarshal([]byte(byteValue), &result)
json.Unmarshal(byteValue, &result)
fmt.Println("result ", result.Tau)
fmt.Println("result ", result.Th)