Skip to content

Commit 2b477c3

Browse files
authored
Merge pull request #21 from lightstreams-network/shop_create
Renames shop.initialize to shop.create
2 parents c7a4992 + 49b42e2 commit 2b477c3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

example/gateway-proxy/routes/shop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (gwApi) => {
2121

2222
try {
2323
const attrs = extractRequestAttrs(req, query);
24-
const { shop } = await gwApi.shop.initialize(attrs.from, attrs.password);
24+
const { shop } = await gwApi.shop.create(attrs.from, attrs.password);
2525
res.send(JsonResponse({ shop }));
2626
} catch ( err ) {
2727
next(err);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightstreams-js-sdk",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Lightstreams JS SDK for building mainstream DApps with support for Programmable Decentralized Private Storage.",
55
"author": "Gabriel Garrido",
66
"contributors": [

src/gateway/shop.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (gwDomain) => ({
1717
* @param password The password that unlocks the from account
1818
* @returns {Promise<{ shop }>} Shop contract address
1919
*/
20-
initialize: (from, password) => {
20+
create: (from, password) => {
2121
return request.post(`${gwDomain}${CREATE_SHOP_PATH}`, {
2222
from,
2323
password,
@@ -59,4 +59,4 @@ module.exports = (gwDomain) => ({
5959
acl
6060
});
6161
}
62-
});
62+
});

0 commit comments

Comments
 (0)