Skip to content

Commit 228aa0d

Browse files
authored
Update ora.md
Fix indentation
1 parent 5e3d93a commit 228aa0d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/tools/oracles/ora.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ To build with AI models of OAO, we provided an example of contract using OAO: [P
3434

3535
1. Inherit `AIOracleCallbackReceiver` in your contract and bind with a specific OAO address:
3636

37-
```solidity
38-
constructor(IAIOracle _aiOracle) AIOracleCallbackReceiver(_aiOracle) {}
39-
```
37+
```solidity
38+
constructor(IAIOracle _aiOracle) AIOracleCallbackReceiver(_aiOracle) {}
39+
```
4040
4141
2. Write your callback function to handle the AI result from OAO. Note that only OAO can call this function:
4242
43-
```solidity
44-
function aiOracleCallback(uint256 requestId, bytes calldata output, bytes calldata callbackData) external override onlyAIOracleCallback()
45-
```
43+
```solidity
44+
function aiOracleCallback(uint256 requestId, bytes calldata output, bytes calldata callbackData) external override onlyAIOracleCallback()
45+
```
4646
4747
3. When you want to initiate an AI inference request, call OAO as follows:
4848
49-
```solidity
50-
aiOracle.requestCallback(modelId, input, address(this), gas_limit, callbackData);
51-
```
49+
```solidity
50+
aiOracle.requestCallback(modelId, input, address(this), gas_limit, callbackData);
51+
```
5252
5353
## Reference
5454
@@ -70,4 +70,4 @@ Polygon PoS Mainnet:
7070
7171
- Read [ORA documentation](https://docs.ora.io)
7272
- [Join our Discord](https://discord.gg/ora-io) where our team can help you
73-
- Follow us [on X](https://x.com/OraProtocol)
73+
- Follow us [on X](https://x.com/OraProtocol)

0 commit comments

Comments
 (0)