Skip to content

Commit cc05d65

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 <noreply@anthropic.com>
1 parent d82f13b commit cc05d65

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
@@ -37,6 +37,7 @@ contract FeeVault {
3737
}
3838

3939
constructor(address _owner) {
40+
require(_owner != address(0), "FeeVault: owner is the zero address");
4041
owner = _owner;
4142
bridgeShareBps = 10000; // Default to 100% bridge
4243
emit OwnershipTransferred(address(0), _owner);

0 commit comments

Comments
 (0)