Allow get_shutdown_scriptpubkey and get_destination_script to return an error
[rust-lightning] / fuzz / src / onion_message.rs
index 9bbf8b9cdffa5010e6463ae96d5de071b19d8285..9ac86c34582cef597db6ef517d6e9516aba6543d 100644 (file)
@@ -141,9 +141,9 @@ impl SignerProvider for KeyProvider {
 
        fn read_chan_signer(&self, _data: &[u8]) -> Result<EnforcingSigner, DecodeError> { unreachable!() }
 
-       fn get_destination_script(&self) -> Script { unreachable!() }
+       fn get_destination_script(&self) -> Result<Script, ()> { unreachable!() }
 
-       fn get_shutdown_scriptpubkey(&self) -> ShutdownScript { unreachable!() }
+       fn get_shutdown_scriptpubkey(&self) -> Result<ShutdownScript, ()> { unreachable!() }
 }
 
 #[cfg(test)]