Skip to content

Commit

Permalink
chore: adding load wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 committed Jan 16, 2024
1 parent 42dfa98 commit 0eeb131
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion dev/bin/fund-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 5 additions & 2 deletions dev/helpers/onchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0eeb131

Please sign in to comment.