Skip to content

Commit

Permalink
return error in case of init/upgrade if no function found
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurobert committed Oct 4, 2023
1 parent 41c60e3 commit 815d898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmhost/hostCore/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ func (host *vmHost) callUpgradeFunction() error {
func (host *vmHost) callSCFunction(functionName string) error {
runtime := host.Runtime()
if !runtime.HasFunction(functionName) {
return nil
return executor.ErrFuncNotFound
}

err := runtime.CallSCFunction(functionName)
Expand Down

0 comments on commit 815d898

Please sign in to comment.