Skip to content

Commit 513656e

Browse files
committed
fix: balance contract braces and resolve undefined string assignment in batch validation
1 parent 33dff82 commit 513656e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

contract/contracts/hello-world/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ impl AutoShareContract {
392392
/// Emits a `BatchProcessingCompleted` event for off-chain listeners.
393393
pub fn emit_batch_completed(env: Env, batch_id: BytesN<32>, processed_count: u32) {
394394
autoshare_logic::emit_batch_completed(env, batch_id, processed_count).unwrap();
395+
}
396+
395397
// ============================================================================
396398
// Batch Notification Creation
397399
// ============================================================================

listener/src/services/batch-validation-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class BatchValidationService {
187187
} else {
188188
invalidEntries.push({
189189
index,
190-
error: validation.error,
190+
error: validation.error ?? '',
191191
});
192192
}
193193
});

0 commit comments

Comments
 (0)