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:
parent
f82b99792f
commit
51cae44be9
@ -10,7 +10,7 @@ async function exec() {
|
||||
const ocean: Ocean = await Ocean.getInstance(config)
|
||||
|
||||
const publisher: Account = (await ocean.getAccounts())[0]
|
||||
publisher.setPassword("node0")
|
||||
publisher.setPassword(process.env.ACCOUNT_PASSWORD)
|
||||
const consumer: Account = (await ocean.getAccounts())[1]
|
||||
|
||||
const metaData: Partial<MetaData> = <any> {
|
||||
|
@ -9,7 +9,7 @@ async function exec() {
|
||||
const ocean: Ocean = await Ocean.getInstance(config)
|
||||
|
||||
const publisher: Account = (await ocean.getAccounts())[0]
|
||||
publisher.setPassword("node0")
|
||||
publisher.setPassword(process.env.ACCOUNT_PASSWORD)
|
||||
const consumer: Account = (await ocean.getAccounts())[1]
|
||||
|
||||
const metaData: Partial<MetaData> = <any> {
|
||||
|
@ -10,7 +10,7 @@ async function exec() {
|
||||
const ocean: Ocean = await Ocean.getInstance(config)
|
||||
|
||||
const publisher: Account = (await ocean.getAccounts())[0]
|
||||
publisher.setPassword("node0")
|
||||
publisher.setPassword(process.env.ACCOUNT_PASSWORD)
|
||||
const consumer: Account = (await ocean.getAccounts())[1]
|
||||
|
||||
const metaData: Partial<MetaData> = <any> {
|
||||
|
@ -8,7 +8,7 @@ async function exec() {
|
||||
const ocean: Ocean = await Ocean.getInstance(config)
|
||||
|
||||
const publisher: Account = (await ocean.getAccounts())[0]
|
||||
publisher.setPassword("node0")
|
||||
publisher.setPassword(process.env.ACCOUNT_PASSWORD)
|
||||
|
||||
const metaData: Partial<MetaData> = <any> {
|
||||
base: {
|
||||
|
Loading…
Reference in New Issue
Block a user