File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -647,19 +647,6 @@ func (context *runtimeContext) FailExecution(err error) {
647647 logRuntime .Trace ("execution failed" , "message" , traceMessage )
648648}
649649
650- // FailExecutionConditionally informs Wasmer to immediately stop the execution of the contract
651- // with BreakpointExecutionFailed and sets the corresponding VMOutput fields accordingly, if the unsafe mode is not active.
652- // If unsafe mode is active, it just logs the error.
653- func (context * runtimeContext ) FailExecutionConditionally (err error ) {
654- if context .IsUnsafeMode () {
655- logRuntime .Trace ("execution would have failed, but unsafe mode is active" , "err" , err )
656- context .AddError (err )
657- return
658- }
659-
660- context .FailExecution (err )
661- }
662-
663650// IsUnsafeMode returns true if mode is unsafe
664651func (context * runtimeContext ) IsUnsafeMode () bool {
665652 return context .unsafeMode
You can’t perform that action at this time.
0 commit comments