From bab956a0dbc802a2407af52a1bfb60b6ae196b28 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 2 Dec 2024 15:25:18 +0000 Subject: [PATCH 1/2] chore: fix event emission for smart account module --- x/smart-account/ante/pubkey.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/x/smart-account/ante/pubkey.go b/x/smart-account/ante/pubkey.go index 4b16f22d335..6e7ae7b7c8c 100644 --- a/x/smart-account/ante/pubkey.go +++ b/x/smart-account/ante/pubkey.go @@ -48,10 +48,15 @@ func (spkd EmitPubKeyDecoratorEvents) AnteHandle(ctx sdk.Context, tx sdk.Tx, sim } var events sdk.Events + for i, sig := range sigs { + signerStr, err := spkd.ak.AddressCodec().BytesToString(signers[i]) + if err != nil { + return sdk.Context{}, err + } events = append(events, sdk.NewEvent(sdk.EventTypeTx, - sdk.NewAttribute(sdk.AttributeKeyAccountSequence, fmt.Sprintf("%s/%d", signers[i], sig.Sequence)), - sdk.NewAttribute(smartaccounttypes.AttributeKeyAccountSequenceAuthenticator, fmt.Sprintf("%s/%d", signers[i], sig.Sequence)), + sdk.NewAttribute(sdk.AttributeKeyAccountSequence, fmt.Sprintf("%s/%d", signerStr, sig.Sequence)), + sdk.NewAttribute(smartaccounttypes.AttributeKeyAccountSequenceAuthenticator, fmt.Sprintf("%s/%d", signerStr, sig.Sequence)), )) sigBzs, err := signatureDataToBz(sig.Data) From bda70ac52ede20e55a0e35f9f2a679991cec8526 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 3 Dec 2024 15:02:37 +0000 Subject: [PATCH 2/2] chore: add changelog.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecbe1ba913f..83f4e83f18f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +* [#8858](https://github.com/osmosis-labs/osmosis/pull/8858) chore: fix event emission for smart account module + +## v27.0.1 + ### State Compatible * [#8831](https://github.com/osmosis-labs/osmosis/pull/8831) chore: bump cometbft