chore(mock): implement KVStoreTx String() for better diagnostics (#25383)

Co-authored-by: Alex | Cosmos Labs <alex@cosmoslabs.io>
This commit is contained in:
radik878 2025-10-06 20:31:21 +03:00 committed by GitHub
parent 5e65c6b582
commit 9c3b19ae4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{}