Skip to content

Commit faec2dd

Browse files
committed
add repayment tx hash in repay event
1 parent 2ea0f73 commit faec2dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

x/lending/keeper/msg_server_loan.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ func (m msgServer) Repay(goCtx context.Context, msg *types.MsgRepay) (*types.Msg
320320
sdk.NewAttribute(types.AttributeKeyAdaptorPoint, msg.AdaptorPoint),
321321
sdk.NewAttribute(types.AttributeKeyAgencyPubKey, loan.Agency),
322322
sdk.NewAttribute(types.AttributeKeySigHashes, strings.Join(sigHashes, types.AttributeValueSeparator)),
323+
sdk.NewAttribute(types.AtrtibuteKeyRepaymentTxHash, repaymentTxPsbt.UnsignedTx.TxHash().String()),
323324
),
324325
)
325326

x/lending/types/events.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const (
2020

2121
AttributeKeyLoanId = "loan_id"
2222

23-
AttributeKeyAdaptorPoint = "adaptor_point"
23+
AttributeKeyAdaptorPoint = "adaptor_point"
24+
AtrtibuteKeyRepaymentTxHash = "repayment_tx_hash"
2425

2526
AttributeKeySigHashes = "sig_hashes"
2627
)

0 commit comments

Comments
 (0)