Skip to content

Commit

Permalink
fix readme for protocol-sdk for premint to reflect the possibility of…
Browse files Browse the repository at this point in the history
… having an account as an argument (#237)

<!--- Provide a general summary of your changes in the Title above -->

## Description

The protocol-sdk readme doesnt take into consideration the fact that the account could be an `Account` and not just an `Address` - so this updates the readme to reflect this

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## Does this change the ABI/API?

- [ ] This changes the ABI/API

<!-- If so, please describe how and what potential impact this may have -->

## What tests did you add/modify to account for these changes

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New module / feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] i added a changeset to account for this change

## Reviewer Checklist:

- [ ] My review includes a symposis of the changes and potential issues
- [ ] The code style is enforced
- [ ] There are no risky / concerning changes / additions to the PR
  • Loading branch information
oveddan authored Mar 8, 2024
1 parent 538152b commit 7852ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async function createForFree({
// public client that will simulate the transaction
publicClient: PublicClient;
// address of the token contract
creatorAccount: Address;
creatorAccount: Account | Address;
}) {
const premintClient = createPremintClient({
chain: walletClient.chain!,
Expand All @@ -250,7 +250,7 @@ async function createForFree({
checkSignature: true,
// collection info of collection to create
collection: {
contractAdmin: creatorAccount,
contractAdmin: typeof creatorAccount === "string" ? creatorAccount : creatorAccount.address,
contractName: "Testing Contract",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
Expand Down

0 comments on commit 7852ceb

Please sign in to comment.