Skip to content

Commit e29a706

Browse files
Merge pull request #7423 from BitGo/COIN-6307-canton-ack-transaction-verify
feat(canton): Implement verifyTransaction
2 parents 2d648da + ec8d427 commit e29a706

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)