From 9c3b19ae4ce7ddf473ad93a1d7e93e6368ff03e2 Mon Sep 17 00:00:00 2001 From: radik878 Date: Mon, 6 Oct 2025 20:31:21 +0300 Subject: [PATCH] chore(mock): implement KVStoreTx String() for better diagnostics (#25383) Co-authored-by: Alex | Cosmos Labs --- server/mock/tx.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/mock/tx.go b/server/mock/tx.go index 9bc7749dde..5a49bd5ccd 100644 --- a/server/mock/tx.go +++ b/server/mock/tx.go @@ -70,9 +70,11 @@ func (msg *KVStoreTx) Equals(key cryptotypes.PubKey) bool { panic("implement me") } -func (msg *KVStoreTx) Reset() {} -func (msg *KVStoreTx) String() string { return "TODO" } -func (msg *KVStoreTx) ProtoMessage() {} +func (msg *KVStoreTx) Reset() {} +func (msg *KVStoreTx) String() string { + return fmt.Sprintf("KVStoreTx{key:%q value:%q address:%s}", msg.key, msg.value, msg.address.String()) +} +func (msg *KVStoreTx) ProtoMessage() {} var ( _ sdk.Tx = &KVStoreTx{}