Skip to content
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

subscribeOnLogs method with specific contract address is not working!!!! #366

Closed
amirhossein7 opened this issue Aug 24, 2021 · 7 comments · Fixed by #378
Closed

subscribeOnLogs method with specific contract address is not working!!!! #366

amirhossein7 opened this issue Aug 24, 2021 · 7 comments · Fixed by #378
Labels
bug Something isn't working 💸 gitcoin-bounty Earn money by helping with this issue!

Comments

@amirhossein7
Copy link

amirhossein7 commented Aug 24, 2021

guard let provider = InfuraWebsocketProvider.connectToInfuraSocket(.Mainnet, delegate: spyDelegate) else {print("provider error!"); return}
self.socketProvider = provider

do {
try self.socketProvider!.subscribeOnLogs(addresses: [EthereumAddress("0x6B175474E89094C44Da98b954EedeAC495271d0F")!], topics: ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"])

}catch{
self.socketProvider!.disconnectSocket()
print("catch websocket: (error)")
}

i tried to subscribe on logs of this smart-contract and socket connected but i don't get any thing in didReceive delegate method !!!

@amirhossein7 amirhossein7 changed the title i need to get notify when my transaction mined, how can i get this notification ? subscribeOnLogs method with specific contract address is not working!!!! Sep 4, 2021
@amirhossein7
Copy link
Author

@skywinder @BaldyAsh

@amirhossein7 amirhossein7 changed the title subscribeOnLogs method with specific contract address is not working!!!! subscribeOnLogs method with specific contract address is not working!!!! Sep 4, 2021
@amirhossein7
Copy link
Author

fixed in this pull request #374

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 150.0 DAI (150.0 USD @ $1.0/DAI) attached to it.

@skywinder
Copy link
Collaborator

skywinder commented Sep 13, 2021

Thanks, @amirhossein7 ! I added bounty for this fix. Please apply for this reward on gitcoin.
I reopen the issue (it will be closed automatically as soon as PR will be merged)

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 265 years, 2 months from now.
Please review their action plans below:

1) amirhossein7 has applied to start work (Funders only: approve worker | reject worker).

Hi, It's because used from Starscream old WebsocketDelegate methods and they don't work at all , now it must update with new delegate method and i updated it in this pull request #374 (comment)

Learn more on the Gitcoin Issue Details page.

@skywinder skywinder added bug Something isn't working 💸 gitcoin-bounty Earn money by helping with this issue! labels Sep 13, 2021
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 150.0 DAI (150.0 USD @ $1.0/DAI) has been submitted by:


@gitcoinbot
Copy link

gitcoinbot commented Sep 13, 2021

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 264 years, 10 months from now.
Please review their action plans below:

1) amirhossein7 has been approved to start work.

It's because used from the old WebsocketDelegate method and must update with new delegate method

Learn more on the Gitcoin Issue Details page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💸 gitcoin-bounty Earn money by helping with this issue!
Projects
None yet
3 participants