Skip to content

Commit ec8d427

Browse files
feat(sdk-coin-canton): implement verifyTransaction
Ticket: COIN-6307
1 parent 89ed696 commit ec8d427

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/sdk-coin-canton/src/canton.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ export class Canton extends BaseCoin {
104104
const txBuilder = new TransactionBuilderFactory(coinConfig).from(rawTx);
105105
const transaction = txBuilder.transaction;
106106
switch (transaction.type) {
107-
case TransactionType.WalletInitialization: {
108-
// there is no input for this type of transaction, so always return true
107+
case TransactionType.WalletInitialization:
108+
case TransactionType.TransferAccept:
109+
case TransactionType.TransferReject:
110+
case TransactionType.TransferAcknowledge:
111+
// There is no input for these type of transactions, so always return true.
109112
return true;
110-
}
111113
default: {
112114
throw new Error(`unknown transaction type, ${transaction.type}`);
113115
}

0 commit comments

Comments
 (0)