diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 02:14:19 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 02:14:19 +0200 |
commit | 94c6cd43413f266f0db898cfb3fc7a9833509ef8 (patch) | |
tree | 087f6f40d2e151ceed41dd03933317f35a014dfe /bin/ak-transactions | |
parent | f93ebfadb3e0d89e668784cd781ad33c62e01065 (diff) | |
download | arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.tar.gz arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.tar.bz2 arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.zip |
Refactored function names
Diffstat (limited to 'bin/ak-transactions')
-rwxr-xr-x | bin/ak-transactions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak-transactions b/bin/ak-transactions index 4dd659c..221b4fd 100755 --- a/bin/ak-transactions +++ b/bin/ak-transactions @@ -1,6 +1,6 @@ #!/bin/bash PROGRAM="$(basename $0)" -usage(){ +_ak_modules_transactions_usage(){ echo "$PROGRAM from to amount" } @@ -8,7 +8,7 @@ logit(){ ak-logthis "<$PROGRAM>" "$1" "$2" } -main(){ +_ak_modules_transactions_main(){ logit "[INFO]" "$FROM_ADDRESS to $TO_ADDRESS value sent: $AMOUNT" cat > transaction_file <<EOF $FROM_ADDRESS @@ -43,8 +43,8 @@ then FROM_ADDRESS="$1" TO_ADDRESS="$2" AMOUNT="$3" - main + _ak_modules_transactions_main cat $PWD/data | jq -M ak-pack_z_block transaction/add $PWD/data -else usage +else _ak_modules_transactions_usage fi |