Skip to content

Commit

Permalink
fix(v1 integration test): withdrawal to v1 incorrect balance format
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroqn authored and Flouse committed May 27, 2022
1 parent 9f2df05 commit 2718510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable-integration-test-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2718510

Please sign in to comment.