Skip to content

Commit

Permalink
Add memo
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed May 22, 2024
1 parent 2062cef commit daac768
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/indexer/decode/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func parseIcs20Withdrawal(body *astria.Action_Ics20Withdrawal, height types.Leve
action.Data["destination_address"] = body.Ics20Withdrawal.GetDestinationChainAddress()
action.Data["return_address"] = hex.EncodeToString(body.Ics20Withdrawal.GetReturnAddress())
action.Data["source_channel"] = body.Ics20Withdrawal.GetSourceChannel()
if memo := body.Ics20Withdrawal.GetMemo(); memo != "" {
action.Data["memo"] = memo
}

if th := body.Ics20Withdrawal.GetTimeoutHeight(); th != nil {
action.Data["timeout_height"] = map[string]any{
Expand Down

0 comments on commit daac768

Please sign in to comment.