From 2718510254ea9d8cd67b87998e5373941858c2fc Mon Sep 17 00:00:00 2001 From: "zero.qn" Date: Fri, 27 May 2022 11:09:39 +0800 Subject: [PATCH] fix(v1 integration test): withdrawal to v1 incorrect balance format --- .github/workflows/reusable-integration-test-v1.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-integration-test-v1.yml b/.github/workflows/reusable-integration-test-v1.yml index f99776ce..1fef39dc 100644 --- a/.github/workflows/reusable-integration-test-v1.yml +++ b/.github/workflows/reusable-integration-test-v1.yml @@ -216,10 +216,10 @@ jobs: counter=1 while [ $counter -le 60 ] do - balance=$(./kicker get-balance 0x966B30e576A4d6731996748B48Dd67C94eF29999 | grep -oE "Balance:\s.*") - echo "current balance: ${balance}==" + balance=$(./kicker get-balance 0x966B30e576A4d6731996748B48Dd67C94eF29999 | grep -oE "Balance:\s*[[:digit:]]+" | awk '{print $2}') + echo "current balance: ==${balance}==" # deposit 1000 + withdraw from v0 1000 (NOTE: CKB decimal is 18, aka 2000 * 10^18) - if [ "$balance" = "Balance: 2000000000000000000000" ]; then + if [ "$balance" = "2000000000000000000000" ]; then echo "withdraw from v0 to v1 success" exit 0 fi