fix: set indexed address to filter

This commit is contained in:
snsd0805 2023-06-12 20:19:43 +08:00
parent 260568d62d
commit e207b779b8
Signed by: snsd0805
GPG Key ID: 569349933C77A854

View File

@ -19,9 +19,9 @@ contract SoulboundToken is ERC721, Ownable {
mapping(address => Certificate[]) private certificates; mapping(address => Certificate[]) private certificates;
mapping(address => uint) private address_to_number; mapping(address => uint) private address_to_number;
event Borrow(address client, address shop, address bank, uint id, uint amount); event Borrow(address indexed client, address indexed shop, address indexed bank, uint id, uint amount);
event Repay(address client, address bank, uint id, uint amount); event Repay(address indexed client, address indexed bank, uint id, uint amount);
event Warning(address client, address bank); event Warning(address indexed client, address indexed bank);
constructor() ERC721("Credit System Soulbound Token", "CS_SBT") {} constructor() ERC721("Credit System Soulbound Token", "CS_SBT") {}