farcasterxyz / contracts

Implementation of the Farcaster contracts
https://www.farcaster.xyz/
MIT License
340 stars 122 forks source link

feat: `Bundler:register()` does not check for zero `storageUnits` input #333

Closed horsefacts closed 1 year ago

horsefacts commented 1 year ago

If a user attempts to register by passing zero storageUnits, the function call will revert while performing the external StorageRegistry.rent() call. Consider validating that the storageUnits input parameter is higher than 0 before making the external function call.