1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Payable view are not valid use unc_sdk::unc; #[derive(Default)] #[unc(contract_state)] struct Test {} #[unc] impl Test { #[payable] pub fn pay(&self) {} } fn main() {}