Skip to content

Commit

Permalink
fix motoko/hello_cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Sep 17, 2024
1 parent cca6caf commit cf84c96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions motoko/hello_cycles/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ test: install
echo "wallet: $(WALLET)"
echo "hello_cycles: $(HELLO_CYCLES)"
echo "$(dfx canister call hello_cycles wallet_balance)"
# canister has just above 3T cycles, so output start with '(3'
# canister has just above 2.98T cycles, so output start with '(2_98'
dfx canister call hello_cycles wallet_balance \
| grep '(3' && echo 'PASS'
| grep '(2_98' && echo 'PASS'
dfx canister status hello_cycles
dfx canister call $(WALLET) wallet_send '(record { canister = principal "$(HELLO_CYCLES)"; amount = (2000000000000:nat64); } )'
# 2T cycles added, now contains just above 5T
# 2T cycles added, now contains just above 4.98T
dfx canister call hello_cycles wallet_balance \
| grep '(5' && echo 'PASS'
| grep '(4_98' && echo 'PASS'
echo '(func "$(WALLET)"."wallet_receive", 5000000)'
dfx canister call hello_cycles transfer '(func "$(WALLET)"."wallet_receive", 5000000)' \
| grep '0' && echo 'PASS'
dfx canister call hello_cycles wallet_balance \
| grep '(5' && echo 'PASS'
| grep '(4_98' && echo 'PASS'

.PHONY: clean
.SILENT: clean
Expand Down

0 comments on commit cf84c96

Please sign in to comment.