Skip to content

Commit 7f81921

Browse files
committed
fix(tutorial): fix contracts code ids
1 parent 05e1fca commit 7f81921

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorials/cli-1.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,14 @@ Smart contract instantiation is creating and deploying a smart contract instance
310310

311311
| CODE_ID | Smart contract | Description |
312312
| ------- | --------------------------------------------------------------------------------------- | ----------------------------------- |
313-
| 4 | [`objectarium`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-objectarium) | Unstructured object storage |
314-
| 5 | [`law-stone`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-law-stone) | Source of rules |
315-
| 7 | [`cognitarium`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-cognitarium) | Structured object storage, ontology |
313+
| 2 | [`objectarium`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-objectarium) | Unstructured object storage |
314+
| 1 | [`law-stone`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-law-stone) | Source of rules |
315+
| 3 | [`cognitarium`](https://github.com/axone-protocol/contracts/tree/main/contracts/axone-cognitarium) | Structured object storage, ontology |
316316

317317
Let's create a new `objectarium` instance. The [msg.rs](https://github.com/axone-protocol/contracts/blob/main/contracts/axone-objectarium/src/msg.rs) source file indicates we only need to provide a bucket name.
318318

319319
```bash
320-
axoned tx wasm instantiate 4 \
320+
axoned tx wasm instantiate 2 \
321321
--label "cli-tuto" \
322322
--from axone1cu9wzlcyyxpek20jaqfwzu3llzjgx34cqf94yj \
323323
--admin axone1cu9wzlcyyxpek20jaqfwzu3llzjgx34cqf94yj \
@@ -392,7 +392,7 @@ axoned query wasm contract-state smart axone1tca04wdta7pyzzyetgqyl2rn9v5vgxq0cwv
392392

393393
```bash
394394
axoned query txs \
395-
--events 'instantiate.code_id=5' \
395+
--events 'instantiate.code_id=1' \
396396
--chain-id axone-dentrite-1 \
397397
--node https://api.dentrite.axone.xyz:443/rpc --output json | jq \
398398
'{total_count: .total_count, txs: [.txs[] | {date: .timestamp, sc_addr: .logs[0].events[] | select (.type == "instantiate").attributes[0].value , txdata: .tx.body.messages[0] | { sender: .sender, program: .msg.program }}]}'

0 commit comments

Comments
 (0)