Skip to content

abort handling via host provided function  #416

@radkomih

Description

@radkomih

Is there an existing issue?

  • I have searched the existing issues

Motivation

Instead of calling panic(message)

func (l Logger) Critical(message string) {
	l.log(CriticalLevel, []byte(target), []byte(message))
	panic(message)
}

use the host provided abort function

Request

Interface for aborting the execution of the runtime:ext_panic_handler_abort_on_panic_version_1

https://spec.polkadot.network/chap-host-api#id-abort-handler

Solution

No response

Are you willing to help with this request?

Yes!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions