From 961cf641bfa2c8088d2c27a26262b4e110a7473d Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Fri, 12 Apr 2024 01:17:41 +0200 Subject: [PATCH] Fix json specifiers for ledger entry changes (#134) --- cmd/soroban-rpc/internal/methods/simulate_transaction.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/soroban-rpc/internal/methods/simulate_transaction.go b/cmd/soroban-rpc/internal/methods/simulate_transaction.go index 361022ae..6ad3c63b 100644 --- a/cmd/soroban-rpc/internal/methods/simulate_transaction.go +++ b/cmd/soroban-rpc/internal/methods/simulate_transaction.go @@ -134,10 +134,10 @@ func (l *LedgerEntryChange) FromXDRDiff(diff preflight.XDRDiff) error { // LedgerEntryChange designates a change in a ledger entry. Before and After cannot be be omitted at the same time. // If Before is omitted, it constitutes a creation, if After is omitted, it constitutes a delation. type LedgerEntryChange struct { - Type LedgerEntryChangeType - Key string // LedgerEntryKey in base64 - Before *string `json:"before"` // LedgerEntry XDR in base64 - After *string `json:"after"` // LedgerEntry XDR in base64 + Type LedgerEntryChangeType `json:"type"` + Key string `json:"key"` // LedgerEntryKey in base64 + Before *string `json:"before"` // LedgerEntry XDR in base64 + After *string `json:"after"` // LedgerEntry XDR in base64 } type SimulateTransactionResponse struct {