Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/develop/multi-author-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -786,12 +786,12 @@ const cfg = JSON.parse(readFileSync("config.json", "utf-8"));
const indexTopic = Topic.fromString(cfg.topics.index);
const indexOwner = new EthAddress(cfg.admin.owner);
const indexReader = bee.makeFeedReader(indexTopic, indexOwner);
const indexResult = await indexReader.download();
const indexResult = await indexReader.downloadReference();
console.log("Index feed at index:", indexResult.feedIndex.toBigInt());

// Download the authors.json manifest
const authorsData = await bee.downloadFile(indexResult.reference);
const authors = JSON.parse(new TextDecoder().decode(authorsData.data));
const authors = JSON.parse(new TextDecoder().decode(authorsData.data.bytes));

console.log(`\n${authors.length} authors in blog:\n`);

Expand All @@ -801,7 +801,7 @@ for (const author of authors) {
const owner = new EthAddress(author.owner);
const reader = bee.makeFeedReader(topic, owner);
try {
const result = await reader.download();
const result = await reader.downloadReference();
console.log(`${author.name}`);
console.log(` Feed index: ${result.feedIndex.toBigInt()}`);
console.log(` URL: ${process.env.BEE_URL}/bzz/${author.feedManifest}/`);
Expand All @@ -814,7 +814,7 @@ for (const author of authors) {
const homeTopic = Topic.fromString(cfg.topics.home);
const homeOwner = new EthAddress(cfg.admin.owner);
const homeReader = bee.makeFeedReader(homeTopic, homeOwner);
const homeResult = await homeReader.download();
const homeResult = await homeReader.downloadReference();
console.log(`\nHomepage feed at index: ${homeResult.feedIndex.toBigInt()}`);
console.log(`Homepage URL: ${process.env.BEE_URL}/bzz/${cfg.manifests.home}/`);
```
Expand Down
Loading