You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
}
}
The text was updated successfully, but these errors were encountered:
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()
}
}
The text was updated successfully, but these errors were encountered: