Skip to content

Commit 240e37f

Browse files
committed
style: standardize section titles and improve consistency in the result callback guide
1 parent aec3b16 commit 240e37f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/guides/build-iapp/advanced/result-callback.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description:
55
on your smart contract at the end of a task execution.
66
---
77

8-
# Result Callback
8+
# Result callback
99

1010
This guide explains how to trigger a callback function at the end of a
1111
successful task on your smart contract.
@@ -29,9 +29,9 @@ Use a callback when your smart contract should:
2929
5. Your contract decodes and processes those bytes if callback data have been
3030
provided.
3131

32-
## Step-by-Step Implementation
32+
## Step-by-step implementation
3333

34-
### Step 1: Implement the Callback Contract
34+
### Step 1: Implement the callback contract
3535

3636
Your contract must expose the function `receiveResult(bytes32,bytes)`
3737
[ERC1154](https://github.com/iExecBlockchainComputing/iexec-solidity/blob/master/contracts/ERC1154/IERC1154.sol).
@@ -64,7 +64,7 @@ Ensure your callback logic fits within this limit to avoid out-of-gas errors.
6464

6565
:::
6666

67-
### Step 2: Prepare the Callback Payload in the iApp
67+
### Step 2: Prepare the callback payload in the iApp
6868

6969
You only need to write `computed.json` containing the key `callback-data`.
7070
That value must be the ABI‑encoded bytes your contract knows how to decode.
@@ -98,7 +98,7 @@ async function main() {
9898
}
9999
```
100100

101-
### Step 3: Run the iApp with a Callback
101+
### Step 3: Run the iApp with a callback
102102

103103
When creating the request order, set the `callback` field to your callback
104104
contract address.
@@ -153,7 +153,7 @@ const taskId = await iexec.order.matchOrders({
153153
});
154154
```
155155

156-
## 🔄 Other Use Cases
156+
## 🔄 Other use cases
157157

158158
| Use Case | Description |
159159
| -------------------- | ---------------------------------------- |

0 commit comments

Comments
 (0)