Skip to content

Commit

Permalink
fix: create wallet before send to address
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 4, 2024
1 parent 2240137 commit 17c2fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
container_id=$(docker ps -qf "name=mercurylayer_bitcoin_1")
echo "Container ID: $container_id"
docker logs $container_id
wallet_name="new_wallet"
address=$(docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass createwallet $wallet_name | jq -r '.warning')
echo "New Wallet Address: $address"
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass generatetoaddress 101 $address
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass sendtoaddress bcrt1pcngfxjdkf4r2h26k52dh5nunxg8m68uf4lkfhmfjvjj6agfkm5jqmftw4e 0.0001
- name: Verify ElectrumX Service with Curl
run: |
Expand Down

0 comments on commit 17c2fb5

Please sign in to comment.