Skip to content

Commit b72ea25

Browse files
authored
Fix storage engine on store/program/instance (#174)
* Fix storage engine on store/program/instance * v1.0.5 * Fix for eslint
1 parent 829016e commit b72ea25

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"packages": ["packages/*"]
55
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aleph-sdk/client",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "",
55
"main": "dist/index.cjs",
66
"module": "dist/index.mjs",

packages/message/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aleph-sdk/message",
3-
"version": "1.0.3",
3+
"version": "1.0.5",
44
"description": "Aleph.im message CRUD API",
55
"main": "dist/index.cjs",
66
"module": "dist/index.mjs",

packages/message/src/instance/impl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export class InstanceMessageClient {
3535
}: InstancePublishConfiguration): Promise<InstanceMessage> {
3636
const timestamp = Date.now() / 1000
3737
const { address } = account
38+
// To remove @typescript-eslint/no-unused-vars at buildtime, without removing the argument
39+
storageEngine
3840

3941
const mergedResources = {
4042
...defaultResources,
@@ -76,7 +78,7 @@ export class InstanceMessageClient {
7678
account,
7779
channel,
7880
timestamp,
79-
storageEngine,
81+
storageEngine: ItemType.inline,
8082
content: instanceContent,
8183
})
8284

packages/message/src/program/impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class ProgramMessageClient {
120120
account,
121121
channel,
122122
timestamp,
123-
storageEngine,
123+
storageEngine: ItemType.inline,
124124
content: programContent,
125125
})
126126

packages/message/src/store/impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class StoreMessageClient {
7171
channel,
7272
content: storeContent,
7373
account,
74-
storageEngine: storageEngine === ItemType.storage ? ItemType.inline : ItemType.ipfs,
74+
storageEngine: ItemType.inline,
7575
timestamp,
7676
})
7777

packages/superfluid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aleph-sdk/superfluid",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Aleph.im account wrapper for interacting with the Superfluid Avalanche Contract",
55
"main": "dist/index.cjs",
66
"module": "dist/index.mjs",

0 commit comments

Comments
 (0)