- for this code the itemsForSale[id].seller.transfer(msg.value); is the one sending the ETH to the seller right? if I were to add
uint256 OwnerAddress = "0x12313..."
OwnerAddress.transfer(msg.value) will it be consider as transaction fee?
function buyItem(uint256 id) payable external ItemExists(id) IsForSale(id) HasTransferApproval(itemsForSale[id].tokenAddress, itemsForSale[id].tokenId){
require(msg.value >= itemsForSale[id].askingPrice, "Insufficient Funds");
require(msg.sender != itemsForSale[id].seller);
itemsForSale[id].isSold = true;
activeItems[itemsForSale[id].tokenAddress][itemsForSale[id].tokenId] == false;
IERC721(itemsForSale[id].tokenAddress).safeTransferFrom(itemsForSale[id].seller, msg.sender, itemsForSale[id].tokenId);
itemsForSale[id].seller.transfer(msg.value);
emit itemSold(id, msg.sender, itemsForSale[id].askingPrice);
}
is there any moralis tutorial for transaction fees?