Skip to content

Commit 14fd4b3

Browse files
fix(xrpl): add missing omitempty tag to RipplePathFindRequest Domain
1 parent 71cdb9f commit 14fd4b3

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
#### xrpl
13+
14+
- Add missing `omitempty` tag to `RipplePathFindRequest.Domain`
15+
816
## [v0.1.15]
917

1018
### Added

xrpl/queries/path/ripple_path_find.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type RipplePathFindRequest struct {
2121
SourceCurrencies []pathtypes.RipplePathFindCurrency `json:"source_currencies,omitempty"`
2222
LedgerHash common.LedgerHash `json:"ledger_hash,omitempty"`
2323
LedgerIndex common.LedgerSpecifier `json:"ledger_index,omitempty"`
24-
Domain *string `json:"domain"`
24+
Domain *string `json:"domain,omitempty"`
2525
}
2626

2727
// Method returns the JSON-RPC method name for the RipplePathFindRequest.

xrpl/queries/path/ripple_path_find_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func TestRipplePathFindRequest(t *testing.T) {
4343
{
4444
"currency": "USD"
4545
}
46-
],
47-
"domain": null
46+
]
4847
}`
4948
if err := testutil.Serialize(t, s, j); err != nil {
5049
t.Error(err)

0 commit comments

Comments
 (0)