File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
example/gateway-proxy/routes Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = (gwApi) => {
21
21
22
22
try {
23
23
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 ) ;
25
25
res . send ( JsonResponse ( { shop } ) ) ;
26
26
} catch ( err ) {
27
27
next ( err ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lightstreams-js-sdk" ,
3
- "version" : " 0.12 .0" ,
3
+ "version" : " 0.13 .0" ,
4
4
"description" : " Lightstreams JS SDK for building mainstream DApps with support for Programmable Decentralized Private Storage." ,
5
5
"author" : " Gabriel Garrido" ,
6
6
"contributors" : [
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports = (gwDomain) => ({
17
17
* @param password The password that unlocks the from account
18
18
* @returns {Promise<{ shop }> } Shop contract address
19
19
*/
20
- initialize : ( from , password ) => {
20
+ create : ( from , password ) => {
21
21
return request . post ( `${ gwDomain } ${ CREATE_SHOP_PATH } ` , {
22
22
from,
23
23
password,
@@ -59,4 +59,4 @@ module.exports = (gwDomain) => ({
59
59
acl
60
60
} ) ;
61
61
}
62
- } ) ;
62
+ } ) ;
You can’t perform that action at this time.
0 commit comments