Skip to content

Commit

Permalink
fix(protocol): fix tier ID check issue in GuardianProver.approve() (#…
Browse files Browse the repository at this point in the history
…17170)

Co-authored-by: Daniel Wang <[email protected]>
  • Loading branch information
davidtaikocha and dantaik authored May 14, 2024
1 parent 149b7ae commit f3dc402
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions packages/protocol/contracts/L1/provers/GuardianProver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ contract GuardianProver is IVerifier, Guardians {
nonReentrant
returns (bool approved_)
{
if (_proof.tier != LibTiers.TIER_GUARDIAN) {
revert INVALID_PROOF();
}

bytes32 hash = keccak256(abi.encode(_meta, _tran, _proof.data));
approved_ = approve(_meta.id, hash);

Expand Down
1 change: 0 additions & 1 deletion packages/protocol/contracts/L1/provers/Guardians.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ abstract contract Guardians is EssentialContract {
error INVALID_GUARDIAN();
error INVALID_GUARDIAN_SET();
error INVALID_MIN_GUARDIANS();
error INVALID_PROOF();

/// @notice Set the set of guardians
/// @param _newGuardians The new set of guardians
Expand Down

0 comments on commit f3dc402

Please sign in to comment.