From 42f55a649b32ead48e0f7ee20b5399095ae4cc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Sat, 25 Jan 2025 09:38:05 +0100 Subject: [PATCH] Fix UI build --- frontend/src/app/[username]/index.tsx | 1 + frontend/src/app/mint-authority/page.tsx | 2 +- frontend/src/app/utils/walletUtils.ts | 1 - generated/openapi/schema.json | 3 +++ src/wst-poc.cabal | 1 - 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/[username]/index.tsx b/frontend/src/app/[username]/index.tsx index 9ff8d08..e915b0b 100644 --- a/frontend/src/app/[username]/index.tsx +++ b/frontend/src/app/[username]/index.tsx @@ -61,6 +61,7 @@ export default function Profile() { quantity: sendTokenAmount, recipient: sendRecipientAddress, sender: accountInfo.address, + submit_failing_tx: false }; try { const response = await axios.post( diff --git a/frontend/src/app/mint-authority/page.tsx b/frontend/src/app/mint-authority/page.tsx index 463de52..7d0d7e5 100644 --- a/frontend/src/app/mint-authority/page.tsx +++ b/frontend/src/app/mint-authority/page.tsx @@ -6,7 +6,7 @@ import React, { useEffect, useState } from 'react'; import axios from 'axios'; //Lucid imports -import { CML, makeTxSignBuilder, paymentCredentialOf } from '@lucid-evolution/lucid'; +import { paymentCredentialOf } from '@lucid-evolution/lucid'; import type { Credential as LucidCredential } from "@lucid-evolution/core-types"; //Mui imports diff --git a/frontend/src/app/utils/walletUtils.ts b/frontend/src/app/utils/walletUtils.ts index f58c5a8..1b272d4 100644 --- a/frontend/src/app/utils/walletUtils.ts +++ b/frontend/src/app/utils/walletUtils.ts @@ -89,7 +89,6 @@ export async function signAndSentTx(lucid: LucidEvolution, tx: TxSignBuilder): P const expectedScriptDataHash : CML.ScriptDataHash | undefined = CML.calc_script_data_hash(witnessSet.redeemers()!, CML.PlutusDataList.new(), lucid.config().costModels!, witnessSet.languages()); // console.log('Calculated Script Data Hash:', expectedScriptDataHash?.to_hex()); const cmlTxBodyClone = CML.TransactionBody.from_cbor_hex(cmlTx!.body().to_cbor_hex()); - const txIDinAlert = await cmlTxBodyClone.to_json(); // console.log('Preclone script hash:', cmlTxBodyClone.script_data_hash()?.to_hex()); cmlTxBodyClone.set_script_data_hash(expectedScriptDataHash!); // console.log('Postclone script hash:', cmlTxBodyClone.script_data_hash()?.to_hex()); diff --git a/generated/openapi/schema.json b/generated/openapi/schema.json index 7dee249..568fa41 100644 --- a/generated/openapi/schema.json +++ b/generated/openapi/schema.json @@ -156,6 +156,9 @@ }, "sender": { "$ref": "#/components/schemas/Address" + }, + "submit_failing_tx": { + "type": "boolean" } }, "required": [ diff --git a/src/wst-poc.cabal b/src/wst-poc.cabal index 6738528..f34e266 100644 --- a/src/wst-poc.cabal +++ b/src/wst-poc.cabal @@ -102,7 +102,6 @@ library , blockfrost-client-core , cardano-api , cardano-ledger-api - , cardano-ledger-binary , cardano-ledger-shelley , containers , convex-base