Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERC-721 - OwnerOfBatch sample not working without a wallet connected #1233

Closed
juans-chainsafe opened this issue Nov 12, 2024 · 0 comments
Closed
Labels
Priority: P1 Added to issues and PRs relating to a high severity bugs. Type: Bug Added to issues and PRs if they are addressing a bug

Comments

@juans-chainsafe
Copy link
Contributor

juans-chainsafe commented Nov 12, 2024

Describe the bug
Sample OwnerOfBatch located in ERC-721 section is throwing a error when you click on it and the wallet is not connected. But we shouldn't need a wallet connected for this sample

Steps
Steps to reproduce the behavior:

  1. Disconnect the wallet if is connected
  2. Click on OwnerOfBatch sample in ERC-721

Expected behavior
Addresses that own the token will be displayed in the console

Console errors

Web3Exception: Can’t execute GetOwnerOfBatch. No MultiCall component was provided during construction.
ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc721Contract.GetOwnerOfBatch (System.String[] tokenIds) (at <63d609a930d44707afd0223af6093800>:0)
Erc721Sample.OwnerOfBatch () (at Assets/Samples/web3.unity SDK/3.0.6/Web3.Unity Samples/Scripts/Samples/Erc721Sample.cs:99)
Samples.TryExecute (System.Reflection.MethodInfo method, ChainSafe.Gaming.ISample instance) (at ./Library/PackageCache/io.chainsafe.web3-unity@a14c17e17d/Runtime/Scripts/Samples/Samples.cs:92)
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: [2022.3.44]
  • Operating System: [Mac]

Additional context

  • OwnerOfBatch of ERC-1155 works as expected.
  • Multi Call Service Adapter is added in Web3Unity object
@juans-chainsafe juans-chainsafe added Priority: P1 Added to issues and PRs relating to a high severity bugs. Type: Bug Added to issues and PRs if they are addressing a bug labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P1 Added to issues and PRs relating to a high severity bugs. Type: Bug Added to issues and PRs if they are addressing a bug
Projects
None yet
Development

No branches or pull requests

2 participants