We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Into<ScriptBuf>
From<ShutdownScript>
1 parent 22f3641 commit 0293a3cCopy full SHA for 0293a3c
lightning/src/ln/script.rs
@@ -203,9 +203,9 @@ impl TryFrom<(ScriptBuf, &InitFeatures)> for ShutdownScript {
203
}
204
205
206
-impl Into<ScriptBuf> for ShutdownScript {
207
- fn into(self) -> ScriptBuf {
208
- match self.0 {
+impl From<ShutdownScript> for ScriptBuf {
+ fn from(value: ShutdownScript) -> Self {
+ match value.0 {
209
ShutdownScriptImpl::Legacy(pubkey) => {
210
ScriptBuf::new_p2wpkh(&WPubkeyHash::hash(&pubkey.serialize()))
211
},
0 commit comments