From 646e3128484981e14bb11f8bf3ea0fb95a751777 Mon Sep 17 00:00:00 2001 From: Donovan Hide Date: Sun, 24 Mar 2024 08:03:04 +0000 Subject: [PATCH] Fix AuthAccount --- data/ledgerentry.go | 18 +++++++++++++----- data/transaction.go | 6 +++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/data/ledgerentry.go b/data/ledgerentry.go index 721a068..3c0d1cd 100644 --- a/data/ledgerentry.go +++ b/data/ledgerentry.go @@ -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 { diff --git a/data/transaction.go b/data/transaction.go index c1fb6c9..1007cb5 100644 --- a/data/transaction.go +++ b/data/transaction.go @@ -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 {