mirror of
https://github.com/status-im/status-go.git
synced 2025-01-24 21:49:54 +00:00
e78a73bd9f
It uses the current data only and doesn't extend with new types or include new features in activity sources DBs. Major changes: - Partially filter by chain IDs - Partially filter by Status if it is the case - Partially filter by token types - Filter by counterparty addresses - Use wallet accounts for TO/FROM instead of filters Closes: #10634
17 lines
277 B
Go
17 lines
277 B
Go
package testutils
|
|
|
|
import "reflect"
|
|
|
|
const EthSymbol = "ETH"
|
|
const SntSymbol = "SNT"
|
|
const DaiSymbol = "DAI"
|
|
|
|
func StructExistsInSlice[T any](target T, slice []T) bool {
|
|
for _, item := range slice {
|
|
if reflect.DeepEqual(target, item) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|