Skip to content

Commit

Permalink
witness_program_from_bytes_and_version: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Dec 21, 2023
1 parent 39133be commit f75a056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ int wally_witness_program_from_bytes_and_version(const unsigned char *bytes, siz
*written += 1; /* For Witness version byte */
if (flags & WALLY_SCRIPT_AS_PUSH) {
*p = *written & 0xff;
*written += 1; /* For Witness version byte */
*written += 1; /* For Witness push opcode */
}
}
return ret;
Expand Down

0 comments on commit f75a056

Please sign in to comment.