dao: re-added Transaction TODO overwritten by merge and deleted old TODO file

This commit is contained in:
lunar-mining
2022-10-17 10:39:55 +02:00
parent 673d166311
commit 328fbc2ae4
2 changed files with 4 additions and 16 deletions

View File

@@ -1,16 +0,0 @@
priority: immediate
* move schema.rs to darkfi/example
* rename it to dao.rs
* we want to be able to run it like how we run example/tx.rs
* cargo run --example dao
* and it should compile and work
priority: low
* the things in util.rs are not all utils
* some of them should be moved to other modules eventually
* rename [foo]_contract to just foo
* contract/dao_contract/ is redundant
* we can just have contract/dao

View File

@@ -121,10 +121,14 @@ impl ZkContractTable {
}
}
// ANCHOR: transaction
pub struct Transaction {
pub func_calls: Vec<FuncCall>,
// TODO: this is wrong. It should be Vec<Vec<Signature>>
// each Vec<Signature> correspond to ONE function call
pub signatures: Vec<Signature>,
}
// ANCHOR_END: transaction
impl Transaction {
/// Verify ZK contracts for the entire tx