Skip to content

Commit

Permalink
fix: Change data type of label param to static bytes32 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf authored Jan 18, 2023
1 parent 7980f6e commit 0bcf294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/contracts/gho/GhoToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contract GhoToken is ERC20, Ownable, IGhoToken {

emit FacilitatorAdded(
facilitatorAddress,
facilitatorConfig.label,
keccak256(abi.encodePacked(facilitatorConfig.label)),
facilitatorConfig.bucketCapacity
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/gho/interfaces/IGhoToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ interface IGhoToken is IERC20Burnable, IERC20Mintable, IERC20 {
/**
* @dev Emitted when a new facilitator is added
* @param facilitatorAddress The address of the new facilitator
* @param label A human readable identifier for the facilitator
* @param label A hashed human readable identifier for the facilitator
* @param bucketCapacity The initial capacity of the facilitator's bucket
*/
event FacilitatorAdded(
address indexed facilitatorAddress,
string indexed label,
bytes32 indexed label,
uint256 bucketCapacity
);

Expand Down

0 comments on commit 0bcf294

Please sign in to comment.