Skip to content

Commit

Permalink
rm check 'root doesn't exist' for no-transit state contract
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Jun 3, 2024
1 parent 7e0c661 commit e21f60e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/protocol/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func authV2CircuitStateVerification(contract *abi.State, pubsignals []string) er
if err != nil {
return err
}
if (big.NewInt(0)).Cmp(globalStateInfo.CreatedAtTimestamp) == 0 {
return errors.Errorf("root %s doesn't exist in smart contract", globalState.String())
}
// if (big.NewInt(0)).Cmp(globalStateInfo.CreatedAtTimestamp) == 0 {
// return errors.Errorf("root %s doesn't exist in smart contract", globalState.String())
// }
if globalState.Cmp(globalStateInfo.Root) != 0 {
return errors.Errorf("invalid global state info in the smart contract, expected root %s, got %s", globalState.String(), globalStateInfo.Root.String())
}
Expand Down

0 comments on commit e21f60e

Please sign in to comment.