Skip to content

Commit 307a4df

Browse files
committed
fix error
1 parent 7e1c1a5 commit 307a4df

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

contracts/predictify-hybrid/src/batch_operations.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use soroban_sdk::{
33
};
44
use alloc::format;
55
use alloc::string::ToString;
6-
use soroban_sdk::{contracttype, vec, Address, Env, Map, String, Symbol, Vec};
76

87
use crate::errors::Error;
98
use crate::types::*;

contracts/predictify-hybrid/src/circuit_breaker.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ use alloc::string::ToString;
77
use crate::errors::Error;
88
use crate::events::{EventEmitter, CircuitBreakerEvent};
99
use crate::admin::AdminAccessControl;
10-
use crate::errors::Error;
11-
use crate::events::{CircuitBreakerEvent, EventEmitter};
12-
use alloc::format;
13-
use alloc::string::ToString;
1410

1511
// ===== CIRCUIT BREAKER TYPES =====
1612

@@ -465,7 +461,7 @@ impl CircuitBreaker {
465461
) -> Result<(), Error> {
466462
let event = CircuitBreakerEvent {
467463
action,
468-
condition: core::prelude::v1::Some(condition),
464+
condition: core::prelude::v1::Some(condition).unwrap(),
469465
reason: reason.clone(),
470466
timestamp: env.ledger().timestamp(),
471467
admin,

0 commit comments

Comments
 (0)