mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2025-02-22 16:00:37 +01:00
13 lines
301 B
Go
13 lines
301 B
Go
package handler
|
|
|
|
import "context"
|
|
|
|
func (hc *HandlerContainer) checkWithinNetwork(ctx context.Context, contractAddress string, from string, to string) (bool, error) {
|
|
exists, err := hc.cache.ExistsNetwork(ctx, contractAddress, from, to)
|
|
if err != nil {
|
|
return false, err
|
|
}
|
|
|
|
return exists, nil
|
|
}
|