diff --git a/dev/bin/fund-user.sh b/dev/bin/fund-user.sh index 5c2f0434a5d..74f52b131a2 100755 --- a/dev/bin/fund-user.sh +++ b/dev/bin/fund-user.sh @@ -12,6 +12,5 @@ token="$(login_user "${user_phone}")" echo "Fetching wallets for account" echo "Funding wallets" -sleep 20 fund_user_onchain "$token" "USD" fund_user_onchain "$token" "BTC" diff --git a/dev/helpers/onchain.sh b/dev/helpers/onchain.sh index d4dce598961..f521d08496b 100644 --- a/dev/helpers/onchain.sh +++ b/dev/helpers/onchain.sh @@ -22,8 +22,11 @@ fund_user_onchain() { address=$(echo "$response" | jq -r '.data.onChainAddressCreate.address') [[ "${address}" != "null" ]] || exit 1 - bitcoin_cli sendtoaddress "$address" "$btc_amount_in_btc" - bitcoin_cli -generate 4 + + bitcoin_cli -regtest loadwallet "outside" + bitcoin_cli -regtest listwallets + bitcoin_cli -regtest sendtoaddress "$address" "$btc_amount_in_btc" + bitcoin_cli -regtest -generate 4 variables=$( jq -n \