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

[Magic SDK for React Native] Web3 calls not working due to undefined function #139

Closed
phbdias opened this issue Oct 13, 2020 · 2 comments
Closed
Assignees

Comments

@phbdias
Copy link

phbdias commented Oct 13, 2020

✅ Prerequisites

  • [✅] Did you perform a cursory search of open issues? Is this question already asked elsewhere?
  • [✅] Are you reporting to the correct repository (magic-sdk)?

❓ Question

After the most recent changes on Magic SDK for React Native, I have been able to successfully login on Android. However, whenever I try to perform a web3 call, the following error occurs:

"TypeError: callbackify is not a function. (In 'callbackify(this.provider.request.bind(this.provider))', 'callbackify' is undefined)"

I tried with other providers and it works, so I guess the problem is related somehow with Magic, maybe something similar to the last issue I submitted here (#131).

🌎 Environment

| Software : Version(s) |
| ---------------- : ---------- |
| @magic-sdk/react-native: 2.8.0 |
| react: 16.13.1 |
| react-native: 0.63.0 |
| react-native-webview: 8.0.0 |
| web3: 1.2.11 |
| yarn: 1.22.5 |
| Operating System : Android 10 |

@Ethella
Copy link
Member

Ethella commented Oct 19, 2020

Sorry that I'm super busy with the IOS fix. I'll try to put some resources into the current week.

@phbdias
Copy link
Author

phbdias commented Oct 30, 2020

It seems that the problem appeared when web3.js introduced the use of callbackify on version 1.2.10, however they are managing to surpass this problem on their new version (web3/web3.js#3733).

I am aware that Magic SDK is not supporting the recent versions (@1.3.x) of web3 and therefore, I won't be able to bump web3 to its last version, which solves this "callbackify issue". On the meantime, I downgraded web3.js to 1.2.9 to get the ethereum transactions working.

Thanks! 👍

@Ethella Ethella closed this as completed Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants