diff --git a/packages/zevm-app-contracts/contracts/xp-nft/xpNFT.sol b/packages/zevm-app-contracts/contracts/xp-nft/xpNFT.sol index 836fa3d..d5729c0 100644 --- a/packages/zevm-app-contracts/contracts/xp-nft/xpNFT.sol +++ b/packages/zevm-app-contracts/contracts/xp-nft/xpNFT.sol @@ -39,6 +39,7 @@ contract ZetaXP is ERC721Upgradeable, OwnableUpgradeable { event NFTUpdated(address indexed sender, uint256 indexed tokenId, bytes32 tag); error InvalidSigner(); + error InvalidAddress(); error LengthMismatch(); error TransferNotAllowed(); error OutdatedSignature(); @@ -51,6 +52,7 @@ contract ZetaXP is ERC721Upgradeable, OwnableUpgradeable { address signerAddress_, address owner ) public initializer { + if (signerAddress_ == address(0)) revert InvalidAddress(); __ERC721_init(name, symbol); __Ownable_init(); transferOwnership(owner); diff --git a/packages/zevm-app-contracts/scripts/xp-nft/deploy.ts b/packages/zevm-app-contracts/scripts/xp-nft/deploy.ts index 18574b4..b2115cc 100644 --- a/packages/zevm-app-contracts/scripts/xp-nft/deploy.ts +++ b/packages/zevm-app-contracts/scripts/xp-nft/deploy.ts @@ -42,7 +42,7 @@ const deployZetaXP = async () => { saveAddress("ZetaXP", zetaXP.address, networkName); - await verifyContract(zetaXP.address, [name, symbol, ZETA_BASE_URL, signer]); + await verifyContract(zetaXP.address, [name, symbol, ZETA_BASE_URL, signer, owner]); await verifyContract(implementationAddress, []); };