Skip to content

Allow emitEvent in script environment #2813

Closed

Description

Problem Definition

Currently script environment does not allow emit event. I understand it is kind of pointless to emit the events but I think it is too harsh to panic.

Context: I am coding a Safe Transaction Guard project ( using getAuthAccount and some cadence rewrite to basically detect changes in account state )

Proposed Solution

It would be nice to allow emit to run as a no-op instead of panic

return errors.NewOperationNotSupportedError("EmitEvent")

cc: @janezpodhostnik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions