feat: add within network check for approve events

This commit is contained in:
2024-11-20 10:57:51 +03:00
parent 0b5af2f938
commit 5962c26659
4 changed files with 35 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
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
}