Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (c *Client) TransactionOutputsFromReferences(
func (c *Client) EvaluateTx(
txCbor string,
AdditionalUtxos ...string,
) ([]models.RedeemerEvaluation, error) {
) (models.EvaluateTxResponse, error) {
url := "/transactions/evaluate"
body := models.EvaluateTx{
Cbor: txCbor,
Expand All @@ -176,7 +176,7 @@ func (c *Client) EvaluateTx(
return nil, fmt.Errorf("unexpected error: %d", resp.Body)
}
defer resp.Body.Close()
var redeemerEvals []models.RedeemerEvaluation
var redeemerEvals models.EvaluateTxResponse
err = json.NewDecoder(resp.Body).Decode(&redeemerEvals)
if err != nil {
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions models/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ type EvaluateTx struct {
}

type ExecutionUnits struct {
Mem int64 `json:"Mem"`
Steps int64 `json:"Steps"`
Mem int64 `json:"mem"`
Steps int64 `json:"steps"`
}

type RedeemerEvaluation struct {
Expand Down