Skip to content

Commit a619a7f

Browse files
committed
updated exercises
1 parent 84cacc9 commit a619a7f

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
chmod +x submission/01.sh
5151
WALLET=$(submission/01.sh)
52-
if [[ "$WALLET" == *"btrustwallet"* ]]; then
52+
if [[ "$WALLET" == *"builderswallet"* ]]; then
5353
echo "✅ Success: Wallet creation passed!"
5454
else
5555
echo "❌ Error: Wallet creation failed!"
@@ -114,10 +114,22 @@ jobs:
114114
exit 1
115115
fi
116116
117-
- name: 07.sh - Verify Receivers Address Partially Signed Bitcoin Transaction
117+
- name: 07.sh - Verify Total Transaction Output Amount In Satoshis
118118
run: |
119119
chmod +x submission/07.sh
120-
ADD=$(submission/07.sh)
120+
ACTUAL_OUTPUT=$(submission/07.sh)
121+
EXPECTED_OUTPUT=650
122+
if [[ "$ACTUAL_OUTPUT" == "$EXPECTED_OUTPUT" ]]; then
123+
echo "✅ Success: Total Transaction Output Amount In Satoshis Check passed!"
124+
else
125+
echo "❌ Error: Total Transaction Output Amount In Satoshis Check failed!"
126+
exit 1
127+
fi
128+
129+
- name: 08.sh - Verify Receivers Address Partially Signed Bitcoin Transaction
130+
run: |
131+
chmod +x submission/08.sh
132+
ADD=$(submission/08.sh)
121133
if [[ "$ADD" == "bcrt1qcaedd724gts3aug73m78c7nfsv9d8zs9znw8py" ]]; then
122134
echo "✅ Success: Address Verification for Partially Signed Bitcoin Transaction passed!"
123135
else

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Exercise should be done using Regtest network.
1818

1919
6. Confirm your forked repository has a green check mark.
2020

21-
<img src="https://github.com/btrust-builders/lbcli-week-3-exercises/blob/main/success.png" width="500" />
21+
<img src="https://github.com/btrust-builders/lbcli-week-3-exercises/blob/main/success.png" width="300" />
2222

2323
7. Submit your solution to this form: [Google form](https://forms.gle/MHXcSUFStn5vr5dXA).
2424

submission/01.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Create a wallet with the name "btrustwallet".
1+
# Create a wallet with the name "builderswallet".

submission/07.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# What is the receiver's address in this partially signed transaction?
1+
# What is the total output value of this partially signed transaction in satoshis
22
# transaction=cHNidP8BAHsCAAAAAhuVpgVRdOxkuC7wW2rvw4800OVxl+QCgezYKHtCYN7GAQAAAAD/////HPTH9wFgyf4iQ2xw4DIDP8t9IjCePWDjhqgs8fXvSIcAAAAAAP////8BigIAAAAAAAAWABTHctb5VULhHvEejvx8emmDCtOKBQAAAAAAAAAA

submission/08.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# What is the receiver's address in this partially signed transaction?
2+
# transaction=cHNidP8BAHsCAAAAAhuVpgVRdOxkuC7wW2rvw4800OVxl+QCgezYKHtCYN7GAQAAAAD/////HPTH9wFgyf4iQ2xw4DIDP8t9IjCePWDjhqgs8fXvSIcAAAAAAP////8BigIAAAAAAAAWABTHctb5VULhHvEejvx8emmDCtOKBQAAAAAAAAAA

0 commit comments

Comments
 (0)