Skip to content

Commit f8f116b

Browse files
committed
refactor: rename generic DataKey and MilestoneStatus enums to contract-specific names and update error types.
1 parent ef97620 commit f8f116b

31 files changed

Lines changed: 1116 additions & 967 deletions

File tree

contracts/bounty_registry/src/contract.rs

Lines changed: 148 additions & 142 deletions
Large diffs are not rendered by default.

contracts/bounty_registry/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use soroban_sdk::contracterror;
33
#[contracterror]
44
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
55
#[repr(u32)]
6-
pub enum Error {
6+
pub enum BountyError {
77
AlreadyInitialized = 700,
88
NotInitialized = 701,
99
NotAuthorized = 702,

contracts/bounty_registry/src/storage/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub struct Application {
5858
}
5959

6060
#[contracttype]
61-
pub enum DataKey {
61+
pub enum BountyDataKey {
6262
Admin,
6363
CoreEscrow,
6464
ReputationRegistry,

0 commit comments

Comments
 (0)