I have one object in my blockchain and my application keeps updating it regularly. I want to keep track of the
changes that happen to the object. Below is a part of my code.
encoding_struct! {
struct AC {
const SIZE = 16;
field s: Vec<u32> [00 => 08]
field o: Vec<u32> [08 => 16]
}
}
i have transaction with empty init
message! {
struct TxInitAC {
const TYPE = SERVICE_ID;
const ID = TX_INIT_AC;
const SIZE = 0;
}
}
and i have an execute method
fn execute(&self, view: &mut Fork) {
let mut schema = CurrencySchema { view };
let ac = AC::new(vec![], vec![]);
schema.access_control().push(ac);
}