Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi committed Jan 13, 2025
1 parent 27ae174 commit 37ac215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coordinator/internal/logic/provertask/prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (b *BaseProverTask) checkParameter(ctx *gin.Context) (*proverTaskContext, e
if !ProverProviderTypeExist {
return nil, errors.New("get prover provider type from context failed")
}
ptc.ProverProviderType = ProverProviderType.(uint8)
ptc.ProverProviderType = uint8(ProverProviderType.(float64))

hardForkNamesStr, hardForkNameExist := ctx.Get(coordinatorType.HardForkName)
if !hardForkNameExist {
Expand Down
2 changes: 1 addition & 1 deletion coordinator/internal/orm/prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (o *ProverTask) GetFailedProverTasksByHash(ctx context.Context, taskType me
db := o.db.WithContext(ctx)
db = db.Model(&ProverTask{})
db = db.Where("task_type", int(taskType))
db = db.Where("task_id ?", hash)
db = db.Where("task_id", hash)
db = db.Where("proving_status = ?", int(types.ProverProofInvalid))
db = db.Order("id desc")

Expand Down

0 comments on commit 37ac215

Please sign in to comment.