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:
Yeastplume
2020-03-10 18:19:27 +00:00
committed by GitHub
parent aebc352fbe
commit c42d5ddcff
35 changed files with 312 additions and 205 deletions
+1 -1
View File
@@ -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]);