This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
greeting: public(String[100]) | |
@external | |
def __init__(): | |
self.greeting = "Hello World!" | |
@external | |
def greet() -> String[100]: | |
return self.greeting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct User: | |
name: String[100] | |
created: uint256 | |
users: HashMap[int128, User] | |
nextUserId: int128 | |
@external | |
def __init__(): |