Skip to content

Commit 1c4a48c

Browse files
committed
chore: update clarity-wasm
1 parent 5553ffc commit 1c4a48c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clarity/src/vm/clarity_wasm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use super::database::{ClarityDatabase, DataVariableMetadata, STXBalance};
2020
use super::errors::RuntimeErrorType;
2121
use super::events::*;
2222
use super::functions::crypto::{pubkey_to_address_v1, pubkey_to_address_v2};
23+
use super::types::signatures::CallableSubtype;
2324
use super::types::{
2425
ASCIIData, AssetIdentifier, BlockInfoProperty, BuffData, BurnBlockInfoProperty, CallableData,
2526
CharType, FixedFunction, FunctionType, ListData, ListTypeData, OptionalData, PrincipalData,
@@ -5749,13 +5750,12 @@ fn link_exit_at_block_fn(linker: &mut Linker<ClarityWasmContext>) -> Result<(),
57495750
"exit_at_block",
57505751
|mut caller: Caller<'_, ClarityWasmContext>| {
57515752
// Pop back to the current block
5752-
let bhh = caller.data_mut().pop_at_block();
5753+
let bhh = caller.data_mut().pop_at_block()?;
57535754
caller
57545755
.data_mut()
57555756
.global_context
57565757
.database
5757-
.set_block_hash(bhh, true)
5758-
.expect("ERROR: Failed to restore prior active block after time-shifted evaluation.");
5758+
.set_block_hash(bhh, true)?;
57595759

57605760
// Roll back any changes that occurred during the `at-block`
57615761
// expression. This is precautionary, since only read-only

0 commit comments

Comments
 (0)