Explorar o código

wallet: bugfix serialization typo

darkfi %!s(int64=2) %!d(string=hai) anos
pai
achega
bb555c9e1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/darkwallet/src/app.rs

+ 1 - 1
bin/darkwallet/src/app.rs

@@ -466,7 +466,7 @@ fn populate_tree(tree: &sled::Tree) {
 
 
         let msg = chatview::ChatMsg { nick, text };
         let msg = chatview::ChatMsg { nick, text };
         let mut val = vec![];
         let mut val = vec![];
-        line.encode(&mut val).unwrap();
+        msg.encode(&mut val).unwrap();
 
 
         tree.insert(&key, val).unwrap();
         tree.insert(&key, val).unwrap();
     }
     }