1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use dusk_forge_contract::contract; #[contract] mod my_contract { pub struct MyContract { value: u64, } impl MyContract { pub const fn new() -> Self { Self { value: 0 } } pub fn get_value(&self) -> u64 { self.value } } }