From 1e42dafabb7b648abe4e5bd5094d6436e7642360 Mon Sep 17 00:00:00 2001 From: George Date: Wed, 25 Oct 2023 11:10:55 -0700 Subject: [PATCH] Fix typo in JSON-encoded field for a `getLedgerEntries` result (#1050) --- cmd/soroban-cli/src/rpc/mod.rs | 2 +- cmd/soroban-rpc/internal/methods/get_ledger_entries.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/soroban-cli/src/rpc/mod.rs b/cmd/soroban-cli/src/rpc/mod.rs index 46da57a91..e8fc3285c 100644 --- a/cmd/soroban-cli/src/rpc/mod.rs +++ b/cmd/soroban-cli/src/rpc/mod.rs @@ -152,7 +152,7 @@ pub struct LedgerEntryResult { )] pub last_modified_ledger: u32, #[serde( - rename = "liveUntilLedgerSeqLedgerSeq", + rename = "liveUntilLedgerSeq", skip_serializing_if = "Option::is_none", deserialize_with = "deserialize_option_number_from_string", default diff --git a/cmd/soroban-rpc/internal/methods/get_ledger_entries.go b/cmd/soroban-rpc/internal/methods/get_ledger_entries.go index d37347ef5..b7c9c326b 100644 --- a/cmd/soroban-rpc/internal/methods/get_ledger_entries.go +++ b/cmd/soroban-rpc/internal/methods/get_ledger_entries.go @@ -27,7 +27,7 @@ type LedgerEntryResult struct { // Last modified ledger for this entry. LastModifiedLedger int64 `json:"lastModifiedLedgerSeq,string"` // The ledger sequence until the entry is live, available for entries that have associated ttl ledger entries. - LiveUntilLedgerSeq *uint32 `json:"liveUntilLedgerSeqLedgerSeq,string,omitempty"` + LiveUntilLedgerSeq *uint32 `json:"liveUntilLedgerSeq,string,omitempty"` } type GetLedgerEntriesResponse struct {