Skip to content

Commit 52749bf

Browse files
committed
bitcoin: Remove call to deprecated function
We are calling a deprecated function provided `primitives`, as part of the `primitives` release first remove the call and use the new non-deprecated function.
1 parent 64c9298 commit 52749bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/examples/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn main() {
7777
assert_eq!(decoded, script_code);
7878

7979
// to/from bytes excludes the prefix, these are not encoding/decoding functions so this is sane.
80-
let bytes = script_code.to_bytes();
80+
let bytes = script_code.to_vec();
8181
let got = WitnessScriptBuf::from_bytes(bytes);
8282
assert_eq!(got, script_code);
8383
}

0 commit comments

Comments
 (0)