镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Set log handlers as internal virtual instead of private #138

Open

Description

@fastackl
image

These helpers are very useful and would be great to be able to inherit and optionally override instead of having to rewrite in derived contracts. That contract size limit can sneak up on you.

Unless there's a reason these are set to private instead of internal virtual 🤔

Activity

  1. changed the title [-]Set log handlers as internal instead of private[/-] [+]Set log handlers as internal virtual instead of private[/+] on May 18, 2024
  2. Vectorized commented on May 19, 2024

    @Vectorized
    Owner

    These stuff use some extremely dangerous memory tricks tho. It’s like handling super sharp knifes.

  3. fastackl commented on May 20, 2024

    @fastackl
    Author

    Yup I agree. My use case is I want to fire off mirror transfer events in a derived contract. I don't need to modify the packed log handlers, just access them.

    But if I can't inherit these beautiful handlers then the only way to fire these events (other than rewrite something myself) is to copy paste the packed log handlers in my derived contract.

    I.e. setting as private doesn't stop devs from handling knives anyway just forces devs to duplicate code 😅

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions