Skip to content

HyperPlay not working in WebGL #1090

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
In the Connect scene, HyperPlay throws a error when you are in WebGL

Steps
Steps to reproduce the behavior:

  1. Use the scene [SampleLogin - Connect modal]
  2. Build with WebGL
  3. Click on "Connect" button
  4. Select HyperPlay option

Expected behavior
Metamask popup appears and user is able to connect the wallet

Console errors

webgl2.framework.js:30 InvalidOperationException: Unable to resolve service for type 'ChainSafe.Gaming.LocalStorage.DataStorage' while attempting to activate 'ChainSafe.Gaming.HyperPlay.HyperPlayWebGLProvider'.
  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites (System.Type serviceType, System.Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteChain callSiteChain, System.Reflection.ParameterInfo[] parameters, System.Boolean throwIfCallSiteNotFound) [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---
  at ChainSafe.Gaming.UnityPackage.Connection.ConnectionProvider.HandleException (System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---

Screenshots/Video
Screenshot 2024-08-07 at 12 19 29 PM

Desktop (please complete the following information):

  • Chainsafe SDK version: [dev]
  • Unity Version: [2022.3.26]
  • Operating System: [Mac]

Metadata

Metadata

Assignees

Labels

Priority: P2Added to issues and PRs relating to a medium severity bugs.Type: BugAdded to issues and PRs if they are addressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions