Skip to content

Commit 55ee2f6

Browse files
authored
Merge pull request #103 from Skinny001/add-quote-view-error-constants-module
Add quote view error constants module
2 parents 009dd50 + b838af7 commit 55ee2f6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

creator-keys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
pub mod quote_view_errors;
23

34
use soroban_sdk::{contract, contracterror, contractimpl, contracttype, Address, Env, String};
45

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//! Error identifier constants for quote-view (read-only quote) methods.
2+
//!
3+
//! These constants are intended for use in read-only quote paths to provide
4+
//! stable, shared error identifiers for off-chain consumers and internal use.
5+
6+
pub const ERR_NOT_REGISTERED: &str = "not_registered";
7+
pub const ERR_FEE_CONFIG_NOT_SET: &str = "fee_config_not_set";
8+
pub const ERR_OVERFLOW: &str = "overflow";
9+
// Add more as needed for quote-view error cases.

0 commit comments

Comments
 (0)