Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(act): add act #3

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

feat(act): add act #3

wants to merge 11 commits into from

Conversation

ferencsarai
Copy link
Member

No description provided.

src/bee.ts Outdated
@@ -297,6 +299,66 @@ export class Bee {
return chunk.download(this.getRequestOptionsForCall(options), reference)
}

/**
* Adds grantees to a postage batch.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not accurate. addGrantees creates a list of grantees

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed a2dc53c

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant that the "creates for a postage batch" is incorrect, instead something like: "it creates a list from the given array of public keys"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed d739873

src/bee.ts Outdated
}

/**
* Retrieves the grantees for a given reference or ENS name.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove "ENS name"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed b82624a

expect(Buffer.from(dFile.data).toString()).to.eql(data)
})

it('should create grantee list', async function () {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the grantee tests should go under a separate 'grantee' test file because it is a separate endpoint

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New module grantee created. e8b35e0

@@ -44,6 +44,7 @@ export async function upload(
return {
reference: response.data.reference,
tagUid: response.headers['swarm-tag'] ? makeTagUid(response.headers['swarm-tag']) : undefined,
history_address: response.headers['swarm-act-history-address'] || '',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extend the other endpoints with act history header: soc, chunk

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extended: 5c9cf24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants