아이템 구매 (purchaseItem)
function purchaseItem(
string memory uuid,
string memory itemId,
uint256 purchaseItemPrice
) external nonReentrant whenNotPaused {
...
emit PurchaseItemSuccess(
purchaseInfo.buyer,
purchaseInfo.uuid,
purchaseInfo.itemId,
purchaseInfo.purchaseId,
purchaseInfo.purchasedItemPrice
);
}
Parameters
Errors
Event
struct PurchaseHistory {
uint256 purchaseId; // Purchase ID (PK)
uint256 purchasedItemPrice; // 구매 아이템 가격 (wei)
address buyer; // 구매자 EOA
string uuid; // 구매자 UUID
string itemId; // 구매한 Item ID
}
Last updated