From ec8d42722cec4c0ed7fe9a04ff26a6dec519fe43 Mon Sep 17 00:00:00 2001 From: Balamuraleekrishna Date: Tue, 4 Nov 2025 21:00:11 +0530 Subject: [PATCH] feat(sdk-coin-canton): implement verifyTransaction Ticket: COIN-6307 --- modules/sdk-coin-canton/src/canton.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/sdk-coin-canton/src/canton.ts b/modules/sdk-coin-canton/src/canton.ts index 54407f6ba0..5ed37542ad 100644 --- a/modules/sdk-coin-canton/src/canton.ts +++ b/modules/sdk-coin-canton/src/canton.ts @@ -104,10 +104,12 @@ export class Canton extends BaseCoin { const txBuilder = new TransactionBuilderFactory(coinConfig).from(rawTx); const transaction = txBuilder.transaction; switch (transaction.type) { - case TransactionType.WalletInitialization: { - // there is no input for this type of transaction, so always return true + case TransactionType.WalletInitialization: + case TransactionType.TransferAccept: + case TransactionType.TransferReject: + case TransactionType.TransferAcknowledge: + // There is no input for these type of transactions, so always return true. return true; - } default: { throw new Error(`unknown transaction type, ${transaction.type}`); }