refactor: use push_lock_time instead of push_int

This commit is contained in:
Chris Hyunhum Cho 2024-09-25 03:07:20 +00:00
parent b5f96f3369
commit 876146154b
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ impl BenefactorWallet {
beneficiary_key: XOnlyPublicKey,
) -> ScriptBuf {
script::Builder::new()
.push_int(locktime.to_consensus_u32() as i64)
.push_lock_time(locktime)
.push_opcode(OP_CLTV)
.push_opcode(OP_DROP)
.push_x_only_key(beneficiary_key)