missing ops

This commit is contained in:
boufni95 2026-02-06 20:23:09 +00:00 committed by shocknet-justin
parent 9fe681d73b
commit 3389045de7
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -715,7 +715,6 @@ export default class {
}
async GetTx(txid: string) {
this.log("Getting transaction")
const res = await this.walletKit.getTransaction({ txid }, DeadLineMetadata())
return res.response
}

View file

@ -425,8 +425,13 @@ export default class Handler {
const mapRootOpType = (opType: string): Types.OperationType => {
switch (opType) {
case "chain": return Types.OperationType.CHAIN_OP
case "invoice": return Types.OperationType.INVOICE_OP
case "chain_payment":
case "chain":
return Types.OperationType.CHAIN_OP
case "invoice_payment":
case "invoice":
return Types.OperationType.INVOICE_OP
default: throw new Error("Unknown operation type")
}
}