From cf84c9613397db36b7110e991de7ac3ed3a11fab Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Tue, 17 Sep 2024 18:01:50 +0200 Subject: [PATCH] fix motoko/hello_cycles --- motoko/hello_cycles/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/motoko/hello_cycles/Makefile b/motoko/hello_cycles/Makefile index 262521e0d..f0d322454 100644 --- a/motoko/hello_cycles/Makefile +++ b/motoko/hello_cycles/Makefile @@ -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