Skip to content

Commit 7e6ec26

Browse files
Revert "Rename Arcana as StorageProvider during export in index.ts (#5)"
This reverts commit bb0e51f.
1 parent bb0e51f commit 7e6ec26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Arcana } from '@arcana/storage/dist/standalone/storage.umd';
2626
```js
2727
// address: Smart contract address of app
2828
// private key: Secp256K private key
29-
const arcanaInstance = new arcana.storage.StorageProvider({ appId, privateKey, email });
29+
const arcanaInstance = new arcana.storage.Arcana({ appId, privateKey, email });
3030
```
3131

3232
### Uploader

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Arcana as ArcanaT } from './typechain';
1212
import * as Sentry from '@sentry/browser';
1313
import { Integrations } from '@sentry/tracing';
1414

15-
export class StorageProvider {
15+
export class Arcana {
1616
private wallet: Wallet;
1717
private convergence: string;
1818
private email: string;

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Upload File', () => {
6161
file = MockFile('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt', 2 ** 20, 'image/txt');
6262
file = new File([file], file.name, { type: file.type });
6363
const wallet = await arcana.storage.utils.getRandomWallet();
64-
arcanaInstance = new arcana.storage.StorageProvider({
64+
arcanaInstance = new arcana.storage.Arcana({
6565
appId,
6666
privateKey: wallet.privateKey,
6767
email: makeEmail(),
@@ -103,7 +103,7 @@ describe('Upload File', () => {
103103
it('Fail download tranaction', async () => {
104104
receiverWallet = await arcana.storage.utils.getRandomWallet();
105105
console.log('Receiver wallet address', receiverWallet.address);
106-
sharedInstance = new arcana.storage.StorageProvider({
106+
sharedInstance = new arcana.storage.Arcana({
107107
appId,
108108
privateKey: receiverWallet,
109109
email: makeEmail(),

0 commit comments

Comments
 (0)