Skip to content

Commit

Permalink
Update cli scripts so they don't fail and exit when a wallet is alrea…
Browse files Browse the repository at this point in the history
…dy attached.

Signed-off-by: Wade Barnes <[email protected]>
  • Loading branch information
WadeBarnes committed Jun 12, 2020
1 parent 4ebde32 commit e8bca74
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli-scripts/attach-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# - Local Wallet Example; '{}'
# ===================================================================================

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
exit
2 changes: 1 addition & 1 deletion cli-scripts/create-signed-cred-def
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ load-plugin library=libindystrgpostgres.so initializer=postgresstorage_init
# Nothing is actually being written or read from the ledger by this script.
pool connect ${poolName}

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
wallet open ${walletName} key storage_credentials=${storageCredentials}
did use ${authorDid}
ledger cred-def sign=true endorser=${endorserDid} schema_id=${schemaId} signature_type=${signatureType} tag=${tag} primary=${primaryKey}
Expand Down
2 changes: 1 addition & 1 deletion cli-scripts/create-signed-schema
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ load-plugin library=libindystrgpostgres.so initializer=postgresstorage_init
# Nothing is actually being written or read from the ledger by this script.
pool connect ${poolName}

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
wallet open ${walletName} key storage_credentials=${storageCredentials}
did use ${authorDid}
ledger schema sign=true endorser=${endorserDid} name=${schemaName} version=${schemaVersion} attr_names=${schemaAttributes}
Expand Down
2 changes: 1 addition & 1 deletion cli-scripts/did-list
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

load-plugin library=libindystrgpostgres.so initializer=postgresstorage_init

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
wallet open ${walletName} key storage_credentials=${storageCredentials}
did list
wallet close
Expand Down
2 changes: 1 addition & 1 deletion cli-scripts/endorse-transaction
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ load-plugin library=libindystrgpostgres.so initializer=postgresstorage_init

pool connect ${poolName}

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
wallet open ${walletName} key storage_credentials=${storageCredentials}
did use ${endorserDid}
ledger load-transaction file=${inputFile}
Expand Down
2 changes: 1 addition & 1 deletion cli-scripts/export-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

load-plugin library=libindystrgpostgres.so initializer=postgresstorage_init

wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
-wallet attach ${walletName} storage_type=${storageType} storage_config=${storageConfig}
wallet open ${walletName} key storage_credentials=${storageCredentials}
wallet export export_path=${exportPath} export_key
wallet close
Expand Down

0 comments on commit e8bca74

Please sign in to comment.