Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Commit 467f2e6

Browse files
committed
fix: allow value regardless of program version
Signed-off-by: yHSJ <josh@securitybot.info>
1 parent e859875 commit 467f2e6

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • crates/uplc/src/flat/decode

crates/uplc/src/flat/decode/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,7 @@ fn type_from_tags<'a>(
214214
3 + consumed1 + consumed2,
215215
))
216216
}
217-
[tag::VALUE, ..] => {
218-
if ctx.program_is_pre_1_1_0() {
219-
return Err(FlatDecodeError::ConstantTypeNotAvailable(
220-
tag::VALUE,
221-
"Value",
222-
));
223-
}
224-
Ok((Type::value(ctx.arena), 1))
225-
}
217+
[tag::VALUE, ..] => Ok((Type::value(ctx.arena), 1)),
226218
[] => Err(FlatDecodeError::MissingTypeTag),
227219
x => Err(FlatDecodeError::UnknownTypeTags(x.to_vec())),
228220
}

0 commit comments

Comments
 (0)