From 328fbc2ae409d7e1e633999924b4acee93df2715 Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Mon, 17 Oct 2022 10:39:55 +0200 Subject: [PATCH] dao: re-added Transaction TODO overwritten by merge and deleted old TODO file --- bin/dao/daod/TODO | 16 ---------------- bin/dao/daod/src/util.rs | 4 ++++ 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 bin/dao/daod/TODO diff --git a/bin/dao/daod/TODO b/bin/dao/daod/TODO deleted file mode 100644 index 5060f7b09..000000000 --- a/bin/dao/daod/TODO +++ /dev/null @@ -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 diff --git a/bin/dao/daod/src/util.rs b/bin/dao/daod/src/util.rs index 30780e597..6097f0dd8 100644 --- a/bin/dao/daod/src/util.rs +++ b/bin/dao/daod/src/util.rs @@ -121,10 +121,14 @@ impl ZkContractTable { } } +// ANCHOR: transaction pub struct Transaction { pub func_calls: Vec, + // TODO: this is wrong. It should be Vec> + // each Vec correspond to ONE function call pub signatures: Vec, } +// ANCHOR_END: transaction impl Transaction { /// Verify ZK contracts for the entire tx