Skip to content

Commit 6fb2393

Browse files
tac0turtleclaude
andcommitted
fix(FeeVault): add zero address check in constructor
Prevents deploying the contract with a zero address owner, which would permanently lock all administrative functions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a8e4ca7 commit 6fb2393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/src/FeeVault.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ contract FeeVault {
4545
uint256 _bridgeShareBps,
4646
address _otherRecipient
4747
) {
48+
require(_owner != address(0), "FeeVault: owner is the zero address");
4849
require(_bridgeShareBps <= 10000, "FeeVault: invalid bps");
4950

5051
owner = _owner;

0 commit comments

Comments
 (0)