Skip to content

Commit

Permalink
set reason
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 11, 2024
1 parent f1155ac commit 0e6e17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/move/keeper/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func (k Keeper) dispatchMessage(parentCtx sdk.Context, message vmtypes.CosmosMes
}

// emit failed reason event if failed and allowed to fail
event.AppendAttributes(sdk.NewAttribute(types.AttributeKeyReason, err.Error()))
event = event.AppendAttributes(sdk.NewAttribute(types.AttributeKeyReason, err.Error()))
} else {
// commit if success
commit()
Expand Down

0 comments on commit 0e6e17e

Please sign in to comment.