mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-04 04:43:58 +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
@@ -104,7 +104,7 @@ impl TryFrom<&str> for OnionV3Address {
|
||||
|
||||
fn try_from(input: &str) -> Result<Self, Self::Error> {
|
||||
// First attempt to decode a pubkey from hex
|
||||
if let Ok(b) = from_hex(input.to_owned()) {
|
||||
if let Ok(b) = from_hex(input) {
|
||||
if b.len() == 32 {
|
||||
let mut retval = OnionV3Address([0; 32]);
|
||||
retval.0.copy_from_slice(&b[0..32]);
|
||||
|
||||
Reference in New Issue
Block a user