Skip to content

Commit

Permalink
Merge #2965
Browse files Browse the repository at this point in the history
2965: Fix 'I can import address - random' to work fine on Windows r=piotr-iohk a=piotr-iohk


- [x] Fix 'I can import address - random' to work fine on Windows

### Comments

<!-- Additional comments, links, or screenshots to attach, if any. -->

### Issue Number

<!-- Reference the Jira/GitHub issue that this PR relates to, and which requirements it tackles.
  Note: Jira issues of the form ADP- will be auto-linked. -->


Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
  • Loading branch information
iohk-bors[bot] and Piotr Stachyra committed Oct 12, 2021
2 parents 79b58b3 + 4744281 commit 0c3a408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/helpers/utils.rb
Expand Up @@ -22,12 +22,13 @@ def cmd(cmd)
# | cardano-address address bootstrap --root $(cat root.prv | cardano-address key public --with-chain-code) \
# --network-tag testnet 14H/42H
def cardano_address_get_byron_addr(mnemonics, derivation_path)
root = cmd(%(echo #{mnemonics.join(' ')} | cardano-address key from-recovery-phrase Byron | cardano-address key public --with-chain-code)).gsub("\n", '')
cmd(%(echo #{mnemonics.join(' ')} \
| cardano-address key from-recovery-phrase Byron \
| cardano-address key child #{derivation_path} \
| cardano-address key public --with-chain-code \
| cardano-address address bootstrap \
--root $(echo #{mnemonics.join(' ')} | cardano-address key from-recovery-phrase Byron | cardano-address key public --with-chain-code) \
--root #{root} \
--network-tag testnet #{derivation_path}
)).gsub("\n", '')
end
Expand Down

0 comments on commit 0c3a408

Please sign in to comment.