Skip to content

Commit b9cfb49

Browse files
committed
fixed credit program import to Program::get_credits_program().to_string()
1 parent beba622 commit b9cfb49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wasm/tests/offchain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,13 @@ async fn test_fee_calculation_v2() {
398398
let inputs = Array::new();
399399
inputs.set(0u32, JsValue::from_str(input_1));
400400
inputs.set(1u32, JsValue::from_str(input_2));
401+
let program = Progra::get_credits_program().to_string();
401402

402403
let offline_query = OfflineQuery::from_string(OFFLINE_QUERY_V2).unwrap();
403404

404405
let transaction = ProgramManager::execute(
405406
&private_key,
406-
Program::credits().to_string(),
407+
Program::get_credits_program().to_string(),
407408
"transfer_public_to_private",
408409
inputs,
409410
0.0,

0 commit comments

Comments
 (0)