fix: make 'to' field required in TransactionRequest
Some checks failed
Security Scanning / security-scan (push) Waiting to run
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has started running
Python Tests / test-python (push) Has been cancelled
Some checks failed
Security Scanning / security-scan (push) Waiting to run
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has started running
Python Tests / test-python (push) Has been cancelled
This commit is contained in:
@@ -205,7 +205,7 @@ def _serialize_receipt(receipt: Receipt) -> Dict[str, Any]:
|
||||
class TransactionRequest(BaseModel):
|
||||
type: str = Field(description="Transaction type, e.g. TRANSFER, RECEIPT_CLAIM, GPU_MARKETPLACE, EXCHANGE, MESSAGE")
|
||||
sender: str = Field(alias="from") # Accept both "sender" and "from"
|
||||
to: Optional[str] = Field(default=None, description="Recipient address (required for TRANSFER)")
|
||||
to: str = Field(description="Recipient address (required for TRANSFER)")
|
||||
nonce: int
|
||||
fee: int = Field(ge=0)
|
||||
payload: Dict[str, Any]
|
||||
|
||||
Reference in New Issue
Block a user