updated send node #172

Merged
carlos merged 24 commits from send-node into master 2024-11-18 14:19:44 +01:00
Showing only changes of commit 11bb194f26 - Show all commits

View File

@ -156,7 +156,9 @@ func (as *AccountService) FetchTransactions(ctx context.Context, publicKey strin
// Parameters: // Parameters:
// - address: The voucher address. // - address: The voucher address.
func (as *AccountService) VoucherData(ctx context.Context, address string) (*models.VoucherDataResult, error) { func (as *AccountService) VoucherData(ctx context.Context, address string) (*models.VoucherDataResult, error) {
var voucherDataResult models.VoucherDataResult var r struct {
TokenDetails models.VoucherDataResult `json:"tokenDetails"`
}
ep, err := url.JoinPath(config.VoucherDataURL, address) ep, err := url.JoinPath(config.VoucherDataURL, address)
if err != nil { if err != nil {
@ -168,8 +170,8 @@ func (as *AccountService) VoucherData(ctx context.Context, address string) (*mod
return nil, err return nil, err
} }
_, err = doRequest(ctx, req, &voucherDataResult) _, err = doRequest(ctx, req, &r)
return &voucherDataResult, err return &r.TokenDetails, err
} }
// TokenTransfer creates a new token transfer in the custodial system. // TokenTransfer creates a new token transfer in the custodial system.