From 876146154b4e480d85196461ee36cf3e8734d2b4 Mon Sep 17 00:00:00 2001 From: Chris Hyunhum Cho Date: Wed, 25 Sep 2024 03:07:20 +0000 Subject: [PATCH] refactor: use push_lock_time instead of push_int --- bitcoin/examples/taproot-psbt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/examples/taproot-psbt.rs b/bitcoin/examples/taproot-psbt.rs index 3fd25ecc2..f111e9fb1 100644 --- a/bitcoin/examples/taproot-psbt.rs +++ b/bitcoin/examples/taproot-psbt.rs @@ -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)