dfinity / examples

Example applications, microservices, and code samples for the Internet Computer
https://dfinity.org
Apache License 2.0
515 stars 329 forks source link

icrc2-swap README.md typo #795

Closed fenixbul closed 4 months ago

fenixbul commented 4 months ago

The script incorrectly checks Alice's Token A balance twice instead of checking Bob's balance in the second command, leading to potential confusion or incorrect results.

dfinity/examples/motoko/icrc2-swap/README.md

# Check Alice's Token A balance. They should now have 998.99980000 A
dfx canister call token_a icrc1_balance_of 'record {
  owner = principal "'${ALICE}'";
}'

# Check Bob's Token A balance, They should now have 0.99990000 A.
dfx canister call token_a icrc1_balance_of 'record {
  owner = principal "'${ALICE}'";
}'