Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Sep 30, 2024
1 parent f6d0ee2 commit 56db4ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/taiko-client/prover/proof_producer/sgx_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ func (s *SGXProofProducer) requestProof(
return nil, err
}

if len(output.ErrorMessage) > 0 {
return nil, fmt.Errorf("failed to get proof, msg: %s", output.ErrorMessage)
if len(output.ErrorMessage) > 0 || len(output.Error) > 0 {
return nil, fmt.Errorf("failed to get proof,err: %s, msg: %s", output.Error, output.ErrorMessage)
}

return &output, nil
Expand Down
5 changes: 3 additions & 2 deletions packages/taiko-client/prover/proof_producer/zkvm_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var (
type RaikoRequestProofBodyResponseV2 struct {
Data *RaikoProofDataV2 `json:"data"`
ErrorMessage string `json:"message"`
Error string `json:"error"`
}

type RaikoProofDataV2 struct {
Expand Down Expand Up @@ -235,8 +236,8 @@ func (s *ZKvmProofProducer) requestProof(
return nil, err
}

if len(output.ErrorMessage) > 0 {
return nil, fmt.Errorf("failed to get proof, msg: %s", output.ErrorMessage)
if len(output.ErrorMessage) > 0 || len(output.Error) > 0 {
return nil, fmt.Errorf("failed to get proof,err: %s, msg: %s", output.Error, output.ErrorMessage)
}

return &output, nil
Expand Down

0 comments on commit 56db4ce

Please sign in to comment.