Skip to content

Commit 5365be4

Browse files
committed
Use tree-based versioning in getReg
1 parent 8ed2926 commit 5365be4

File tree

1 file changed

+2
-2
lines changed
  • ergotree-interpreter/src/eval

1 file changed

+2
-2
lines changed

ergotree-interpreter/src/eval/sbox.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ pub(crate) static VALUE_EVAL_FN: EvalFn = |_mc, _env, _ctx, obj, _args| {
1818
};
1919

2020
pub(crate) static GET_REG_EVAL_FN: EvalFn = |mc, _env, ctx, obj, args| {
21-
if ctx.activated_script_version() < ErgoTreeVersion::V3 {
21+
if ctx.tree_version() < ErgoTreeVersion::V3 {
2222
return Err(EvalError::ScriptVersionError {
2323
required_version: ErgoTreeVersion::V3,
24-
activated_version: ctx.activated_script_version(),
24+
activated_version: ctx.tree_version(),
2525
});
2626
}
2727
#[allow(clippy::unwrap_used)]

0 commit comments

Comments
 (0)