aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-transactions
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-transactions')
-rwxr-xr-xbin/ak-transactions8
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