Skip to content

Commit

Permalink
debug: show btc address - how can it be null
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Jul 28, 2023
1 parent c384e83 commit f52f2c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ galoy_cli_setup() {
bitcoind_setup() {
bitcoin_cli_cmd createwallet "galoycli" || true
bitcoin_cli_cmd -generate 101
sleep 10
}

login_user() {
Expand Down Expand Up @@ -73,7 +74,10 @@ fund_user() {

start_balance=$(get_balance $wallet_type)

galoy_cli_cmd receive --wallet $wallet_type --via onchain
btc_address=$(galoy_cli_cmd receive --wallet $wallet_type --via onchain | jq -r '.address')
echo "btc_address:" $btc_address

bitcoin_cli_cmd sendtoaddress "$btc_address" $btc_amount
bitcoin_cli_cmd -generate 10

Expand Down

0 comments on commit f52f2c0

Please sign in to comment.