Skip to content

Commit

Permalink
update evaluateTx params to ogmios v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thuannd-teko committed Aug 16, 2023
1 parent c9f15e9 commit 5c3f39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tx_evalution.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func readEvaluateTx(data []byte) (chainsync.Redeemer, error) {
// https://ogmios.dev/mini-protocols/local-tx-submission/#evaluatetx
func (c *Client) EvaluateTxV6(ctx context.Context, cborHex string) (redeemer chainsync.Redeemer, err error) {
var (
payload = makePayloadV6("evaluateTransaction", Map{"transaction": cborHex})
payload = makePayloadV6("evaluateTransaction", Map{"transaction": Map{"cbor": cborHex}})
raw json.RawMessage
)
if err := c.query(ctx, payload, &raw); err != nil {
Expand Down

0 comments on commit 5c3f39e

Please sign in to comment.