Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature Request: Extend the context of a contract #292

@Endogen

Description

@Endogen

It would be really good to know which function called your own contract. Maybe you could add ctx.function which would return the contract that called you or None if it wasn't a contract.

This would allow a pure sell tax for example. Currently that can't be done since all we can know is who called us - for example the Rocketswap contract - but not from which function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions