0

I am having this error [TypeError: undefined is not an object (evaluating '_globalThis.crypto.subtle.digest')] in my app when i am using a transaction function :-

var fromTokenAccount = await myToken.getOrCreateAssociatedAccountInfo(
      fromWallet.publicKey) 

this function uses the npm i react-native-crypto , this is not happening when i ON the debug mode

  • There's not enough code to help you effectively. Could you add the whole error log and a bit more code specific to this error? – Buzz Oct 26 '21 at 13:37
  • hello Buzz, i am using link "https://stackoverflow.com/questions/68236211/how-to-transfer-custom-token-by-solana-web3-js" having code in the answer, but using in react-native. – priyanka sharma Oct 28 '21 at 06:10

0 Answers0