Skip to content

Commit

Permalink
Don't Convert Start Ledger to String for Events Command (#1117)
Browse files Browse the repository at this point in the history
* Don't convert start ledger to string for events command

* converted event.ledger to integer type

---------

Co-authored-by: Shawn Reuland <[email protected]>
  • Loading branch information
stellarsaur and sreuland authored Dec 7, 2023
1 parent f24c449 commit 7fd9107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ pub struct Event {
#[serde(rename = "type")]
pub event_type: String,

pub ledger: String,
pub ledger: u32,
#[serde(rename = "ledgerClosedAt")]
pub ledger_closed_at: String,

Expand Down Expand Up @@ -822,7 +822,7 @@ soroban config identity fund {address} --helper-url <url>"#

let mut oparams = ObjectParams::new();
match start {
EventStart::Ledger(l) => oparams.insert("startLedger", l.to_string())?,
EventStart::Ledger(l) => oparams.insert("startLedger", l)?,
EventStart::Cursor(c) => {
pagination.insert("cursor".to_string(), c.into());
}
Expand Down

0 comments on commit 7fd9107

Please sign in to comment.