diff --git a/client/transactions_requests.go b/client/transactions_requests.go index de95e76..fda839a 100644 --- a/client/transactions_requests.go +++ b/client/transactions_requests.go @@ -8,5 +8,5 @@ package client type CreateTransactionRequest struct { - Transactions []Transaction `json:"transactions,omitempty"` + Transactions []string `json:"transactions,omitempty"` } diff --git a/client/transactions_test.go b/client/transactions_test.go index 9cabf98..3bc5de8 100644 --- a/client/transactions_test.go +++ b/client/transactions_test.go @@ -111,22 +111,7 @@ func TestTransactionsService_Create(t *testing.T) { }) body := &CreateTransactionRequest{ - Transactions: []Transaction{{ - Id: "dummy", - BlockId: "dummy", - Type: 0, - TypeGroup: 1, - Amount: 10000000, - Fee: 10000000, - Sender: "dummy", - SenderPublicKey: "dummy", - Recipient: "dummy", - Signature: "dummy", - VendorField: "dummy", - Confirmations: 10, - Timestamp: 1719434741918, - Nonce: 1, - }}, + Transactions: []string{"dummy"}, } responseStruct, response, err := client.Transactions.Create(context.Background(), body) testGeneralError(t, "Transactions.Create", err)