Skip to content

Commit 30e6dc8

Browse files
committed
Remove extra webhook validation in endpoint
1 parent 878d76f commit 30e6dc8

File tree

1 file changed

+0
-2
lines changed
  • packages/examples/cvat/recording-oracle/src/endpoints

1 file changed

+0
-2
lines changed

packages/examples/cvat/recording-oracle/src/endpoints/webhook.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from fastapi import APIRouter, Header, HTTPException, Request
22

33
import src.services.webhook as oracle_db_service
4-
from src.chain.escrow import validate_escrow
54
from src.db import SessionLocal
65
from src.schemas.webhook import OracleWebhook, OracleWebhookResponse
76
from src.validators.signature import validate_oracle_webhook_signature
@@ -17,7 +16,6 @@ async def receive_oracle_webhook(
1716
) -> OracleWebhookResponse:
1817
try:
1918
sender = await validate_oracle_webhook_signature(request, human_signature, webhook)
20-
validate_escrow(webhook.chain_id, webhook.escrow_address)
2119

2220
with SessionLocal.begin() as session:
2321
webhook_id = oracle_db_service.inbox.create_webhook(

0 commit comments

Comments
 (0)