web3.unity
web3.unity copied to clipboard
ERC error in WebGL when trying to login
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:
- Use the scene [SampleLogin or SampleLogin - Web3Auth]
- 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]