-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: e2e privacy integration #42
base: main
Are you sure you want to change the base?
Conversation
pkg/events/events.go
Outdated
|
||
logChan := make(chan types.Log) | ||
|
||
sub, err := l.evmClient.SubscribeFilterLogs(ctx, q, logChan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The EvmClient needs to be initialized with a WebSocket endpoint; otherwise, it will return a 'subscription is not supported' error. I faced this issue before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed it to not use the subscription function. I have nothing against the subscription implementation, but I think it is better to have this package work with the default rpc client. Also I dont want to add setup in infra for this as its not critical.
No description provided.