Skip to content

Commit 67c8b1c

Browse files
committed
fix: pass namespace to HandleReceipt
Signed-off-by: Simon Gellis <[email protected]>
1 parent 2e9baf2 commit 67c8b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/blockchain/cardano/cardano.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func (c *Cardano) GetTransactionStatus(ctx context.Context, operation *core.Oper
388388
TxHash: statusResponse.GetString("transactionHash"),
389389
Message: statusResponse.GetString("errorMessage"),
390390
ProtocolID: receiptInfo.GetString("protocolId")}
391-
err := common.HandleReceipt(ctx, c, receipt, c.callbacks)
391+
err := common.HandleReceipt(ctx, operation.Namespace, c, receipt, c.callbacks)
392392
if err != nil {
393393
log.L(ctx).Warnf("Failed to handle receipt")
394394
}
@@ -459,7 +459,7 @@ func (c *Cardano) eventLoop() {
459459
var receipt common.BlockchainReceiptNotification
460460
_ = json.Unmarshal(msgBytes, &receipt)
461461

462-
err := common.HandleReceipt(ctx, c, &receipt, c.callbacks)
462+
err := common.HandleReceipt(ctx, "", c, &receipt, c.callbacks)
463463
if err != nil {
464464
l.Errorf("Failed to process receipt: %+v", msgTyped)
465465
}

0 commit comments

Comments
 (0)