Skip to content

Commit

Permalink
feat(contracts): mark hasBadge as virtual so it can be overridden (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Jun 27, 2024
1 parent 26e6d46 commit 290e2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/badge/ScrollBadge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ abstract contract ScrollBadge is IScrollBadge {
function badgeTokenURI(bytes32 uid) public view virtual returns (string memory);

/// @inheritdoc IScrollBadge
function hasBadge(address user) public view returns (bool) {
function hasBadge(address user) public view virtual returns (bool) {
return _userBadgeCount[user] > 0;
}
}

0 comments on commit 290e2c2

Please sign in to comment.