1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

using account password from env variable

This commit is contained in:
Pedro Gutiérrez 2019-02-05 15:14:32 +01:00 committed by Pedro Gutiérrez
parent f82b99792f
commit 51cae44be9
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ async function exec() {
const ocean: Ocean = await Ocean.getInstance(config) const ocean: Ocean = await Ocean.getInstance(config)
const publisher: Account = (await ocean.getAccounts())[0] const publisher: Account = (await ocean.getAccounts())[0]
publisher.setPassword("node0") publisher.setPassword(process.env.ACCOUNT_PASSWORD)
const consumer: Account = (await ocean.getAccounts())[1] const consumer: Account = (await ocean.getAccounts())[1]
const metaData: Partial<MetaData> = <any> { const metaData: Partial<MetaData> = <any> {

View File

@ -9,7 +9,7 @@ async function exec() {
const ocean: Ocean = await Ocean.getInstance(config) const ocean: Ocean = await Ocean.getInstance(config)
const publisher: Account = (await ocean.getAccounts())[0] const publisher: Account = (await ocean.getAccounts())[0]
publisher.setPassword("node0") publisher.setPassword(process.env.ACCOUNT_PASSWORD)
const consumer: Account = (await ocean.getAccounts())[1] const consumer: Account = (await ocean.getAccounts())[1]
const metaData: Partial<MetaData> = <any> { const metaData: Partial<MetaData> = <any> {

View File

@ -10,7 +10,7 @@ async function exec() {
const ocean: Ocean = await Ocean.getInstance(config) const ocean: Ocean = await Ocean.getInstance(config)
const publisher: Account = (await ocean.getAccounts())[0] const publisher: Account = (await ocean.getAccounts())[0]
publisher.setPassword("node0") publisher.setPassword(process.env.ACCOUNT_PASSWORD)
const consumer: Account = (await ocean.getAccounts())[1] const consumer: Account = (await ocean.getAccounts())[1]
const metaData: Partial<MetaData> = <any> { const metaData: Partial<MetaData> = <any> {

View File

@ -8,7 +8,7 @@ async function exec() {
const ocean: Ocean = await Ocean.getInstance(config) const ocean: Ocean = await Ocean.getInstance(config)
const publisher: Account = (await ocean.getAccounts())[0] const publisher: Account = (await ocean.getAccounts())[0]
publisher.setPassword("node0") publisher.setPassword(process.env.ACCOUNT_PASSWORD)
const metaData: Partial<MetaData> = <any> { const metaData: Partial<MetaData> = <any> {
base: { base: {