Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Rename IpfsUploader to PinataUploader #503

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Rename IpfsUploader to PinataUploader #503

merged 1 commit into from
Jul 1, 2022

Conversation

adam-maj
Copy link
Contributor

@adam-maj adam-maj commented Jul 1, 2022

No description provided.

@@ -297,7 +297,7 @@ export class IpfsStorage implements IStorage {
signerAddress?: string,
): Promise<string> {
// TODO move down to IStorageUpload
const token = await (this.uploader as IpfsUploader).getUploadToken(
const token = await (this.uploader as PinataUploader).getUploadToken(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we really need this function here? It's doing a lot of things that we shouldn't be doing - for one it's using an internal function of a single IPFS implementation in the top-level class (this won't work once we add more uploaders), and also its exposed publicly even though its marked as internal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@adam-maj adam-maj merged commit c138a71 into main Jul 1, 2022
@adam-maj adam-maj deleted the am/pinata-uploader branch July 1, 2022 18:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant