Skip to content

Commit

Permalink
fix: add result to Create and EstimateFees (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhashimotoo authored Nov 6, 2023
1 parent 4d0d886 commit 31e6bb3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ func (er *EventRequest) Create(ctx context.Context, eventInput *EventInput) (*Ev
}

clientRequest := &ClientRequest{
Path: "events",
Body: eventParams,
Path: "events",
Result: &EventResult{},
Body: eventParams,
}

result, err := er.client.Post(ctx, clientRequest)
Expand All @@ -88,8 +89,9 @@ func (er *EventRequest) EstimateFees(ctx context.Context, estimateInput EventEst
}

clientRequest := &ClientRequest{
Path: "events/estimate_fees",
Body: eventEstimateParams,
Path: "events/estimate_fees",
Result: &FeeResult{},
Body: eventEstimateParams,
}

result, clientErr := er.client.Post(ctx, clientRequest)
Expand Down

0 comments on commit 31e6bb3

Please sign in to comment.