fix: add alias for sender field to accept both 'sender' and 'from'
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Successful in 5s

This commit is contained in:
aitbc
2026-04-28 16:56:47 +02:00
parent b91f00b697
commit 5e714cb7a3

View File

@@ -204,7 +204,7 @@ def _serialize_receipt(receipt: Receipt) -> Dict[str, Any]:
class TransactionRequest(BaseModel):
type: str = Field(description="Transaction type, e.g. TRANSFER or RECEIPT_CLAIM")
sender: str
sender: str = Field(alias="from")
nonce: int
fee: int = Field(ge=0)
payload: Dict[str, Any]