IIRC, any firearm being handed off to someone else for more than a 72 hour period is considered a sale / transfer.
Barter : to trade by exchanging one commodity for another Is there a value placed on one or the other item?? Either way the firearm is no longer in possession of person A.