File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use bitcoin::secp256k1::PublicKey;
9
9
use crate :: ln:: channelmanager;
10
10
use crate :: types:: features:: InitFeatures ;
11
11
use crate :: ln:: msgs:: DecodeError ;
12
+ use crate :: util:: config:: UserConfig ;
12
13
use crate :: util:: ser:: { Readable , Writeable , Writer } ;
13
14
14
15
use crate :: io;
@@ -128,7 +129,8 @@ impl TryFrom<ScriptBuf> for ShutdownScript {
128
129
type Error = InvalidShutdownScript ;
129
130
130
131
fn try_from ( script : ScriptBuf ) -> Result < Self , Self :: Error > {
131
- Self :: try_from ( ( script, & channelmanager:: provided_init_features ( & crate :: util:: config:: UserConfig :: default ( ) ) ) )
132
+ let features = channelmanager:: provided_init_features ( & UserConfig :: default ( ) ) ;
133
+ Self :: try_from ( ( script, & features) )
132
134
}
133
135
}
134
136
You can’t perform that action at this time.
0 commit comments