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
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user