kopia lustrzana https://github.com/bugout-dev/moonstream
Return chain_id with registered contract
rodzic
1c878329b0
commit
1852b809a6
|
@ -112,6 +112,7 @@ def parse_registered_contract_response(
|
|||
return data.RegisteredContractResponse(
|
||||
id=obj[0].id,
|
||||
blockchain=obj[1].name,
|
||||
chain_id=obj[1].chain_id,
|
||||
address=obj[0].address,
|
||||
metatx_requester_id=obj[0].metatx_requester_id,
|
||||
title=obj[0].title,
|
||||
|
|
|
@ -247,6 +247,7 @@ class UpdateContractRequest(BaseModel):
|
|||
class RegisteredContractResponse(BaseModel):
|
||||
id: UUID
|
||||
blockchain: Optional[str] = None
|
||||
chain_id: Optional[int] = None
|
||||
address: str
|
||||
metatx_requester_id: UUID
|
||||
title: Optional[str] = None
|
||||
|
|
|
@ -139,7 +139,7 @@ async def get_registered_contract_route(
|
|||
contract_id: UUID = Path(...),
|
||||
user_authorization: Tuple[BugoutUser, UUID] = Depends(request_user_auth),
|
||||
db_session: Session = Depends(db.yield_db_read_only_session),
|
||||
) -> List[data.RegisteredContractResponse]:
|
||||
) -> data.RegisteredContractResponse:
|
||||
"""
|
||||
Get the contract by ID.
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue