Skip to content

Commit e78e304

Browse files
committed
fix: add missing dependencies
1 parent 25ead94 commit e78e304

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clarity/src/vm/clarity_wasm.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ pub fn call_function<'a, 'b, 'c>(
480480
sponsor: Option<PrincipalData>,
481481
) -> Result<Value, Error> {
482482
let epoch = global_context.epoch_id;
483+
let clarity_version = *contract_context.get_clarity_version();
483484
let context = ClarityWasmContext::new_run(
484485
global_context,
485486
contract_context,
@@ -7665,12 +7666,13 @@ mod tests {
76657666
}
76667667

76677668
mod error_mapping {
7669+
use stacks_common::types::StacksEpochId;
76687670
use wasmtime::{AsContextMut, Instance, Trap};
76697671

7670-
use super::read_identifier_from_wasm;
7672+
use super::{read_identifier_from_wasm, signature_from_string};
76717673
use crate::vm::errors::{CheckErrors, Error, RuntimeErrorType, ShortReturnType, WasmError};
7672-
use crate::vm::types::ResponseData;
7673-
use crate::vm::Value;
7674+
use crate::vm::types::{OptionalData, ResponseData};
7675+
use crate::vm::{ClarityVersion, Value};
76747676

76757677
const LOG2_ERROR_MESSAGE: &str = "log2 must be passed a positive integer";
76767678
const SQRTI_ERROR_MESSAGE: &str = "sqrti must be passed a positive integer";
@@ -7917,7 +7919,7 @@ mod error_mapping {
79177919
}
79187920
ErrorMap::ShortReturnExpectedValueOptional => {
79197921
Error::ShortReturn(ShortReturnType::ExpectedValue(Value::Optional(
7920-
clarity::vm::types::OptionalData { data: None },
7922+
OptionalData { data: None },
79217923
)))
79227924
}
79237925
ErrorMap::ShortReturnExpectedValue => {

0 commit comments

Comments
 (0)