From 8b9fc949e65d8d009cdfc1e27a2b003c87fef680 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sat, 10 Aug 2024 18:19:50 -0400 Subject: [PATCH] feat: add Equal methods for AssetInfo and ChainInfo types --- x/did/types/types.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 x/did/types/types.go diff --git a/x/did/types/types.go b/x/did/types/types.go new file mode 100644 index 000000000..777f908ff --- /dev/null +++ b/x/did/types/types.go @@ -0,0 +1,15 @@ +package types + +func (a *AssetInfo) Equal(b *AssetInfo) bool { + if a == nil && b == nil { + return true + } + return false +} + +func (c *ChainInfo) Equal(b *ChainInfo) bool { + if c == nil && b == nil { + return true + } + return false +}