mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: add Equal methods for AssetInfo and ChainInfo types
This commit is contained in:
parent
b67df866d4
commit
8b9fc949e6
15
x/did/types/types.go
Normal file
15
x/did/types/types.go
Normal file
@ -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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user