Skip to content

Commit

Permalink
Change API field naming style to Camel Case.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored and 2opremio committed Aug 29, 2024
1 parent 30814ea commit 2daf023
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions cmd/soroban-rpc/internal/methods/get_version_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ import (
)

type GetVersionInfoResponse struct {
Version string `json:"version"`
// TODO: casing to be fixed by https://github.com/stellar/soroban-rpc/pull/164
CommitHash string `json:"commit_hash"` //nolint:tagliatelle
BuildTimestamp string `json:"build_time_stamp"` //nolint:tagliatelle
CaptiveCoreVersion string `json:"captive_core_version"` //nolint:tagliatelle
ProtocolVersion uint32 `json:"protocol_version"` //nolint:tagliatelle
Version string `json:"version"`
CommitHash string `json:"commitHash"`
BuildTimestamp string `json:"buildTimestamp"`
CaptiveCoreVersion string `json:"captiveCoreVersion"`
ProtocolVersion uint32 `json:"protocolVersion"`
}

func NewGetVersionInfoHandler(
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/methods/simulate_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (l *LedgerEntryChange) jsonXdrDiff(diff preflight.XDRDiff, key xdr.LedgerKe
}

// LedgerEntryChange designates a change in a ledger entry. Before and After cannot be omitted at the same time.
// If Before is omitted, it constitutes a creation, if After is omitted, it constitutes a delation.
// If Before is omitted, it constitutes a creation, if After is omitted, it constitutes a deletion.
type LedgerEntryChange struct {
Type LedgerEntryChangeType `json:"type"`

Expand Down

0 comments on commit 2daf023

Please sign in to comment.