mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-01 11:23:55 +01:00
Make Transaction Field in V4 Slate Optional (#356)
* make transaction field in V4 Slate optional * add mutable/non mutable version of tx getter * removal of mut references where not needed * remove more muts * update from master * update from master * test fixes
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ where
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn derive_ecdh_key(sec_key_str: &str, other_pubkey: &PublicKey) -> SecretKey {
|
||||
let sec_key_bytes = from_hex(sec_key_str.to_owned()).unwrap();
|
||||
let sec_key_bytes = from_hex(sec_key_str).unwrap();
|
||||
let sec_key = {
|
||||
let secp_inst = static_secp_instance();
|
||||
let secp = secp_inst.lock();
|
||||
|
||||
@@ -65,7 +65,7 @@ fn owner_v3_init_secure() -> Result<(), grin_wallet_controller::Error> {
|
||||
let sec_key_str = "e00dcc4a009e3427c6b1e1a550c538179d46f3827a13ed74c759c860761caf1e";
|
||||
let _pub_key_str = "03b3c18c9a38783d105e238953b1638b021ba7456d87a5c085b3bdb75777b4c490";
|
||||
|
||||
let sec_key_bytes = from_hex(sec_key_str.to_owned()).unwrap();
|
||||
let sec_key_bytes = from_hex(sec_key_str).unwrap();
|
||||
let sec_key = {
|
||||
let secp_inst = static_secp_instance();
|
||||
let secp = secp_inst.lock();
|
||||
|
||||
@@ -409,7 +409,7 @@ fn owner_v3_lifecycle() -> Result<(), grin_wallet_controller::Error> {
|
||||
"id": 1,
|
||||
"method": "finalize_invoice_tx",
|
||||
"params": {
|
||||
"slate": VersionedSlate::into_version(slate, SlateVersion::V3),
|
||||
"slate": VersionedSlate::into_version(slate, SlateVersion::V3)?,
|
||||
}
|
||||
});
|
||||
let res =
|
||||
|
||||
Reference in New Issue
Block a user