事件中增加购买的ceg数量

This commit is contained in:
CounterFire2023 2023-07-27 16:36:38 +08:00
parent 7e836a135c
commit f705b89f87
2 changed files with 1886 additions and 1578 deletions

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,8 @@ contract BETokenMall is MallBase, ReentrancyGuard {
address indexed buyer,
address tokenAddress,
address currency,
uint256 amount
uint256 amount,
uint256 tokenAmount
);
event TokenAddressUpdated(address tokenAddress);
event SellerUpdated(address seller);
@ -103,6 +104,6 @@ contract BETokenMall is MallBase, ReentrancyGuard {
// Transfer token to buyer
IERC20(tokenAddress).safeTransferFrom(seller, buyer, tokenAmount);
// emit buy event
emit BuyTransaction(buyer, tokenAddress, currency, amount);
emit BuyTransaction(buyer, tokenAddress, currency, amount, tokenAmount);
}
}