Skip to content

Docs update request: /stylus-by-example/function #1748

@siphonelee

Description

@siphonelee

Source: https://docs.arbitrum.io/stylus-by-example/function

In the example code below, should "#[external]" be changed to "#[public]" or not?

#[external]. <-------
impl Contract {
// Define an external function to get the owner of the contract
pub fn owner(&self) -> Address {
self.owner.get()
}
}

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