这是indexloc提供的服务,不要输入任何密码
Skip to content

BalanceOfBatch sample not working #1173

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
The BalanceOfBatch inside ERC-1155 samples is not working with any login methods in the editor and WebGL

Steps
Steps to reproduce the behavior:

  1. Use any login method
  2. Click on BalanceOfBatch sample in ERC1155 section

Expected behavior
Array with the balances is displayed

Console errors

NullReferenceException: Object reference not set to an instance of an object
Erc1155Calls.BalanceOfBatch () (at Assets/Samples/web3.unity SDK/2.6.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:90)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <606c2e0a56af495988c860a4ac613e74>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Desktop (please complete the following information):

  • Chainsafe SDK version: [dev]
  • Unity Version: [e.g., 2022.3.44]
  • Operating System: [Mac]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: P1Added to issues and PRs relating to a high 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