diff --git a/README.md b/README.md index 4f25c616..c6508920 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Address (SS58): 5H8gW16RYqv9pqCVPv8GrxMm3byTiCfe16aA16uXwENsbytA - Send transaction for confidential payment ``` -zeroc tx send -a -s -to +zeroc tx send -a -s -t ``` In the case, Alice sends 10 coins to Bob... diff --git a/runtime/src/conf_transfer.rs b/runtime/src/conf_transfer.rs index 8b93d457..a2f2c15a 100644 --- a/runtime/src/conf_transfer.rs +++ b/runtime/src/conf_transfer.rs @@ -418,13 +418,6 @@ mod tests { (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&enc_alice_bal)) } - // fn alice_pending_transfer_init() -> (PkdAddress, Ciphertext) { - // let (_, enc_key) = get_alice_seed_ek(); - // let zero = elgamal::Ciphertext::zero(); - - // (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&zero)) - // } - fn alice_epoch_init() -> (PkdAddress, u64) { let (_, enc_key) = get_alice_seed_ek(); @@ -454,7 +447,6 @@ mod tests { let mut t = system::GenesisConfig::::default().build_storage().unwrap().0; t.extend(GenesisConfig::{ encrypted_balance: vec![alice_balance_init()], - // pending_transfer: vec![alice_pending_transfer_init()], last_rollover: vec![alice_epoch_init()], epoch_length: 10, transaction_base_fee: 1, diff --git a/src/chain_spec.rs b/src/chain_spec.rs index 407ce56b..baffe0da 100644 --- a/src/chain_spec.rs +++ b/src/chain_spec.rs @@ -130,7 +130,6 @@ fn testnet_genesis(initial_authorities: Vec, endowed_accounts: Vec< }), conf_transfer: Some(ConfTransferConfig { encrypted_balance: vec![alice_balance_init()], - // pending_transfer: vec![alice_pending_transfer_init()], last_rollover: vec![alice_epoch_init()], epoch_length: 1, transaction_base_fee: 1, @@ -171,13 +170,6 @@ fn alice_balance_init() -> (PkdAddress, Ciphertext) { (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&enc_alice_bal)) } -// fn alice_pending_transfer_init() -> (PkdAddress, Ciphertext) { -// let (_, enc_key) = get_alice_seed_ek(); -// let zero = elgamal::Ciphertext::zero(); - -// (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&zero)) -// } - fn alice_epoch_init() -> (PkdAddress, u64) { let (_, enc_key) = get_alice_seed_ek(); diff --git a/zeroc/src/utils.rs b/zeroc/src/utils.rs index 8e040400..3c65e201 100644 --- a/zeroc/src/utils.rs +++ b/zeroc/src/utils.rs @@ -106,6 +106,7 @@ pub struct BalanceQuery { pub pending_transfer_str: String, } +// Temporary code. impl BalanceQuery { /// Get encrypted and decrypted balance for the decryption key pub fn get_balance_from_decryption_key(mut decryption_key: &[u8], api: Api) -> Self {