Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
Submission Details
Severity: high
Invalid

mint Function Restricted to onlyOwner

Author Revealed upon completion

Summary

The mint function in zeno.sol is restricted to be called only by the owner, which is set during zeno.sol’s constructor. However, the calling contract (likely another smart contract) is not the owner of zeno.sol, causing the function to revert whenever it is called.

Vulnerability Details

The mint function in zeno.sol is restricted to be called only by the owner, which is set during zeno.sol’s constructor. However, the calling contract (likely another smart contract) is not the owner of zeno.sol, causing the function to revert whenever it is called.

Impact

Minting will always fail, preventing token issuance.

• The contract cannot function as intended, leading to a loss of expected behavior.

• Users may experience transaction failures, breaking expected workflows.

Tools Used

Recommendations

Ensure the correct ownership setup by making the calling contract the owner of zeno.sol during deployment.

2. Modify the mint function to allow an approved contract (instead of only the owner) to execute minting:

Updates

Lead Judging Commences

inallhonesty Lead Judge
2 months ago
inallhonesty Lead Judge 11 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.