Skip to content

Commit

Permalink
convert bool type to int (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai authored Dec 31, 2024
1 parent eef881a commit e345201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vm/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ func encodeGeodnetPayload(task *task.Task, projectConfig *project.Config) ([]byt
curLatitude := curData[1].(uint64)
curLongitude := curData[2].(uint64)
curSig := task.Signature[:64]
isMove := (abs(lastLatitude, curLatitude) > 10^3) || (abs(lastLongitude, curLongitude) > 10^3)
isMove := uint64(0)
if (abs(lastLatitude, curLatitude) > 10^3) || (abs(lastLongitude, curLongitude) > 10^3) {
isMove = 1
}

assignment := ProofofMovenessCircuit{
LastPayloadHash: uints.NewU8Array(lastPayloadHash[:]),
Expand Down

0 comments on commit e345201

Please sign in to comment.