Closed austinmilt closed 1 year ago
@austinmilt you can try adding below lines and see if it works.
import { Buffer } from "buffer";
global.Buffer = global.Buffer || Buffer
That did the trick! It feels like a hack, but I can cross the road of doing it better later.
I see this is in the Ethereum tutorial. I skipped some of those steps given I am working on Solana. That's my mistake. It might be good to move that step into the non-Ethereum-specific code just to make it clear it's necessary for general use.
I am following the bare React Native guide with the intention of using this with Solana.
I am getting the following error after the
web3auth.login(...)
callSetup
Dependencies:
(These are the dependencies beyond typical react native ones) "@solana/web3.js": "^1.73.2", "@toruslabs/react-native-web-browser": "^1.1.0", "@web3auth/react-native-sdk": "^3.5.0", "@web3auth/solana-provider": "^4.6.0", "buffer": "^6.0.3",
Test Code