Description:
When deploying a contract using the moi.LogicFactory and not passing the fuelLimit in the routineOptions, the function throws an incorrect error:
Expected behavior: The function should either deploy successfully or throw a clear error message indicating that the fuelLimit is missing. However, instead of indicating the missing fuelLimit, the error incorrectly states "invalid address."
When the fuelLimit is provided in routineOptions, the contract deploys successfully without any issues.
Suggested Fix: The error handling should be improved to correctly reflect when fuelLimit is missing from routineOptions, rather than providing a misleading "invalid address" error.
Description: When deploying a contract using the moi.LogicFactory and not passing the fuelLimit in the routineOptions, the function throws an incorrect error:
Expected behavior: The function should either deploy successfully or throw a clear error message indicating that the fuelLimit is missing. However, instead of indicating the missing fuelLimit, the error incorrectly states "invalid address."
When the fuelLimit is provided in routineOptions, the contract deploys successfully without any issues.
Suggested Fix: The error handling should be improved to correctly reflect when fuelLimit is missing from routineOptions, rather than providing a misleading "invalid address" error.
Js-Moi-Sdk code