Skip to content

Commit

Permalink
adjust e2e testing so it matches bech32 key format when patching shar…
Browse files Browse the repository at this point in the history
…ed wallets
  • Loading branch information
Piotr Stachyra committed Nov 23, 2022
1 parent be92c0e commit 1289acb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e/helpers/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def cardano_address_get_byron_addr(mnemonics, derivation_path)
end

def cardano_address_get_acc_xpub(mnemonics, derivation_path, wallet_type = 'Shared',
chain_code = '--with-chain-code', hex: true)
chain_code = '--with-chain-code', hex: false)
cmd(%(echo #{mnemonics.join(' ')} \
| cardano-address key from-recovery-phrase #{wallet_type} \
| cardano-address key child #{derivation_path} \
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ def create_incomplete_shared_wallet(m, acc_ix, acc_xpub)
end

def shared_acc_pubkey(wallet_id)
key_bech32 = SHARED.keys.get_acc_public_key(wallet_id, { format: 'extended' }).parsed_response.delete_prefix('"').delete_suffix('"')
bech32_to_base16(key_bech32)
SHARED.keys.get_acc_public_key(wallet_id, { format: 'extended' }).parsed_response.delete_prefix('"').delete_suffix('"')
end

def patch_incomplete_shared_wallet(wid, payment_patch, deleg_patch)
Expand Down

0 comments on commit 1289acb

Please sign in to comment.