From 5c3f39e9d9ff90641333b6b3bf09dafd2dba05fd Mon Sep 17 00:00:00 2001 From: thuannguyen Date: Wed, 16 Aug 2023 22:14:16 +0700 Subject: [PATCH] update evaluateTx params to ogmios v6.0.0 --- tx_evalution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx_evalution.go b/tx_evalution.go index c671a58..6c7a696 100644 --- a/tx_evalution.go +++ b/tx_evalution.go @@ -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 {