From 89fe08060df099e52eb67227d15dc375b1f07664 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Sun, 3 Nov 2024 19:20:19 -0500 Subject: [PATCH] Fix extension --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/classic/clvm_tools/stages/stage_2/operators.rs | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index efd61bb1..b24c765a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,7 +244,7 @@ dependencies = [ [[package]] name = "clvmr" version = "0.9.1" -source = "git+https://github.com/Chia-Network/clvm_rs?rev=2f413e72fcf1bcafa4a3117f2c2a0a3a0e7e1c6b#2f413e72fcf1bcafa4a3117f2c2a0a3a0e7e1c6b" +source = "git+https://github.com/Chia-Network/clvm_rs?rev=fe356d69b556f345b818d605a667596620585a85#fe356d69b556f345b818d605a667596620585a85" dependencies = [ "chia-bls", "hex-literal", diff --git a/Cargo.toml b/Cargo.toml index 5f2ba3ee..43b954df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ do-notation = "0.1.3" serde_json = "1.0" sha2 = "0.9.5" tempfile = "3.13.0" -clvmr = { git = "https://github.com/Chia-Network/clvm_rs", rev = "2f413e72fcf1bcafa4a3117f2c2a0a3a0e7e1c6b", features = ["pre-eval"] } +clvmr = { git = "https://github.com/Chia-Network/clvm_rs", rev = "fe356d69b556f345b818d605a667596620585a85", features = ["pre-eval"] } binascii = "0.1.4" yaml-rust2 = "0.9" hashlink = "0.9.1" diff --git a/src/classic/clvm_tools/stages/stage_2/operators.rs b/src/classic/clvm_tools/stages/stage_2/operators.rs index 2396fee7..c00ec1a3 100644 --- a/src/classic/clvm_tools/stages/stage_2/operators.rs +++ b/src/classic/clvm_tools/stages/stage_2/operators.rs @@ -363,9 +363,10 @@ impl Dialect for CompilerOperatorsInternal { // The softfork operator comes with an extension argument. fn softfork_extension(&self, ext: u32) -> OperatorSet { match ext { - 0 => OperatorSet::BLS, + 0 => OperatorSet::Default, + 1 => OperatorSet::Keccak, // new extensions go here - _ => OperatorSet::Default, + _ => OperatorSet::Unknown, } }