The InvocationResult class and its derived classes are currently used to assemble the results of contract/script calls from the BaseInvocationScope class.
FunctionInvocationResult: Extends InvocationResult and assembles the response of BaseInvocationScope.call().
InvocationCallResult: Extends InvocationResult and assembles the responses for all dry-related methods from BaseInvocationScope.<get | dryRun | simulate>().
The current inheritance structure does not provide significant benefits and introduces unnecessary complexity. This additional noise can be reduced by adopting a more straightforward approach.
By implementing this change, we can achieve a cleaner, more maintainable codebase.
The InvocationResult class and its derived classes are currently used to assemble the results of contract/script calls from the BaseInvocationScope class.
InvocationResult
and assembles the response ofBaseInvocationScope.call()
.InvocationResult
and assembles the responses for all dry-related methods fromBaseInvocationScope.<get | dryRun | simulate>()
.The current inheritance structure does not provide significant benefits and introduces unnecessary complexity. This additional noise can be reduced by adopting a more straightforward approach.
By implementing this change, we can achieve a cleaner, more maintainable codebase.