Examples/motoko/ledger-transfer at master · dfinity/examples

I think it’s probably this issue:

The solutions from that thread amount to upgrading motoko-base to 0.7.0

Assuming that’s the answer here as well, you can do that like this if using Vessel:

Or by upgrading dfx: