Skip to content

Commit fcc7025

Browse files
authored
docs: updated example and schema for get contract info (#1213)
1 parent c4eec5d commit fcc7025

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

docs/entities/contracts/smart-contract.schema.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
"type": "object",
33
"title": "SmartContract",
44
"description": "A Smart Contract Detail",
5-
"required": [
6-
"tx_id",
7-
"canonical",
8-
"block_height",
9-
"source_code",
10-
"abi"
11-
],
5+
"required": ["tx_id", "canonical", "block_height", "source_code", "contract_id", "abi"],
126
"properties": {
137
"tx_id": {
148
"type": "string"
159
},
1610
"canonical": {
1711
"type": "boolean"
1812
},
13+
"contract_id": {
14+
"type": "string"
15+
},
1916
"block_height": {
2017
"type": "integer"
2118
},

docs/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,9 @@ paths:
883883
content:
884884
application/json:
885885
schema:
886-
$ref: ./entities/transactions/transaction-1-smart-contract.schema.json
886+
$ref: ./entities/contracts/smart-contract.schema.json
887887
example:
888-
$ref: ./entities/transactions/transaction-1-smart-contract.example.json
888+
$ref: ./entities/contracts/smart-contract.example.json
889889
404:
890890
description: Cannot find contract of given ID
891891
parameters:

0 commit comments

Comments
 (0)