Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Fix AuthAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanhide committed Mar 24, 2024
1 parent ebe5d11 commit 646e312
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
18 changes: 13 additions & 5 deletions data/ledgerentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,20 @@ type VoteEntry struct {
VoteEntry VoteEntryItem `json:",omitempty"`
}

type AuthAccountItem struct {
Account Account `json:",omitempty"`
}

type AuthAccount struct {
AuthAccount AuthAccountItem `json:",omitempty"`
}

type AuctionSlot struct {
Account *Account `json:",omitempty"`
AuthAccounts []Account `json:",omitempty"`
DiscountedFee *uint16 `json:",omitempty"`
Price *Amount `json:",omitempty"`
Expiration *uint32 `json:",omitempty"`
Account *Account `json:",omitempty"`
AuthAccounts []AuthAccount `json:",omitempty"`
DiscountedFee *uint16 `json:",omitempty"`
Price *Amount `json:",omitempty"`
Expiration *uint32 `json:",omitempty"`
}

type AMM struct {
Expand Down
6 changes: 3 additions & 3 deletions data/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ type AMMBid struct {
TxBase
Asset Asset
Asset2 Asset
BidMin *Amount `json:",omitempty"`
BidMax *Amount `json:",omitempty"`
AuthAccounts []Account `json:",omitempty"`
BidMin *Amount `json:",omitempty"`
BidMax *Amount `json:",omitempty"`
AuthAccounts []AuthAccount `json:",omitempty"`
}

type AMMDelete struct {
Expand Down

0 comments on commit 646e312

Please sign in to comment.