Просмотр исходного кода

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

lunar-mining 3 лет назад
Родитель
Сommit
328fbc2ae4
2 измененных файлов с 4 добавлено и 16 удалено
  1. 0 16
      bin/dao/daod/TODO
  2. 4 0
      bin/dao/daod/src/util.rs

+ 0 - 16
bin/dao/daod/TODO

@@ -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

+ 4 - 0
bin/dao/daod/src/util.rs

@@ -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