From c3c1f489c3f6d70f5a954d6f392dc2563bf7347d Mon Sep 17 00:00:00 2001 From: victor-kcoin Date: Mon, 10 Feb 2025 10:37:43 +0000 Subject: [PATCH] fix: error msg for OpCheckSequenceVerify --- crypto/txscript/src/opcodes/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/txscript/src/opcodes/mod.rs b/crypto/txscript/src/opcodes/mod.rs index fde1cfa95..57c1d9f55 100644 --- a/crypto/txscript/src/opcodes/mod.rs +++ b/crypto/txscript/src/opcodes/mod.rs @@ -845,7 +845,7 @@ opcode_list! { // If more - return ErrNumberTooBig // If less - pad with 0's if sequence_bytes.len() > 8 { - return Err(TxScriptError::NumberTooBig(format!("lockTime value represented as {sequence_bytes:x?} is longer then 8 bytes"))) + return Err(TxScriptError::NumberTooBig(format!("sequence value represented as {sequence_bytes:x?} is longer then 8 bytes"))) } // Don't use makeScriptNum here, since sequence is not an actual number, minimal encoding rules don't apply to it, // and is more convenient to be represented as an unsigned int.