@@ -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
1010This guide explains how to trigger a callback function at the end of a
1111successful task on your smart contract.
@@ -29,9 +29,9 @@ Use a callback when your smart contract should:
29295 . 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
3636Your 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
6969You only need to write ` computed.json ` containing the key ` callback-data ` .
7070That 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
103103When creating the request order, set the ` callback ` field to your callback
104104contract 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