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.
If a user attempts to
register
by passing zerostorageUnits
, the function call will revert while performing the externalStorageRegistry.rent()
call. Consider validating that thestorageUnits
input parameter is higher than0
before making the external function call.