Skip to content

Commit f96f738

Browse files
committed
ffi(nostr): rename Nip21Enum::EventId and Nip21Enum::Coordinate due to kotlin limitation
1 parent 7ce3a29 commit f96f738

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bindings/nostr-ffi/src/nips/nip21.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ pub enum Nip21Enum {
2020
Pubkey { public_key: Arc<PublicKey> },
2121
/// nostr::nprofile
2222
Profile { profile: Arc<Nip19Profile> },
23-
/// nostr::note
24-
EventId { event_id: Arc<EventId> },
23+
/// nostr::note (EventId)
24+
Note { event_id: Arc<EventId> },
2525
/// nostr::nevent
2626
Event { event: Arc<Nip19Event> },
2727
/// nostr::naddr
28-
Coordinate { coordinate: Arc<Coordinate> },
28+
Coord { coordinate: Arc<Coordinate> },
2929
}
3030

3131
impl From<nip21::Nip21> for Nip21Enum {
@@ -37,13 +37,13 @@ impl From<nip21::Nip21> for Nip21Enum {
3737
nip21::Nip21::Profile(profile) => Self::Profile {
3838
profile: Arc::new(profile.into()),
3939
},
40-
nip21::Nip21::EventId(event_id) => Self::EventId {
40+
nip21::Nip21::EventId(event_id) => Self::Note {
4141
event_id: Arc::new(event_id.into()),
4242
},
4343
nip21::Nip21::Event(event) => Self::Event {
4444
event: Arc::new(event.into()),
4545
},
46-
nip21::Nip21::Coordinate(coordinate) => Self::Coordinate {
46+
nip21::Nip21::Coordinate(coordinate) => Self::Coord {
4747
coordinate: Arc::new(coordinate.into()),
4848
},
4949
}

0 commit comments

Comments
 (0)