Transferring a Punk

Let's dig into the code that enables punk owners to transfer punks to other wallets. With simple transfers, no ETH changes hands, so this functionality is somewhat independent of marketplace Offers and Bids. Or is it? Let's dig in!

Section Overview

1. A simplistic ImplementationLet's write a basic transferPunk implementation!2. Keeping Token Balances on TransferKnow how many punks someone owns.3. Clearing Marketplace OffersSell-offers should be cleared on token transfer.4. The complete transferPunk FunctionLet's go through the entire function line by line.