From 17c2fb5397939ece0949e300b986aabfde9ab03d Mon Sep 17 00:00:00 2001 From: DhananjayPurohit Date: Tue, 4 Jun 2024 12:14:49 +0530 Subject: [PATCH] fix: create wallet before send to address --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0da06422..17fc7b91 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: |