missing ops
This commit is contained in:
parent
9fe681d73b
commit
3389045de7
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue