web3.unity icon indicating copy to clipboard operation
web3.unity copied to clipboard

ERC error in WebGL when trying to login

Open juans-chainsafe opened this issue 1 year ago • 0 comments

Describe the bug This issue was found in https://github.com/ChainSafe/web3.unity/pull/952#pullrequestreview-2068950620 and basically the login is not working in a WebGL build

Steps Steps to reproduce the behavior:

  1. Use the scene [SampleLogin or SampleLogin - Web3Auth]
  2. Login with [Web3Auth or Remote wallet]

Expected behavior SampleMain is displayed correctly

Console errors

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
  at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Desktop (please complete the following information):

  • Chainsafe SDK version: [PR]
  • Unity Version: [2022.6]
  • Platform: [WebGL]
  • Operating System: [Mac]

juans-chainsafe avatar May 21 '24 16:05 juans-chainsafe