Skip to content

ImportNftTexture sample is not working #1022

Description

@juans-chainsafe

Describe the bug
The NFT texture is not being imported and being displayed in SampleMain

Steps
Steps to reproduce the behavior:

  1. Use the scene [SampleLogin - Wallet connect or SampleLogin - Web3Auth]
  2. Login with [Web3Auth or Remote wallet]
  3. Click on ImportNftTexture sample

Expected behavior
Image is upload and appears in the screen

Console errors
Web3Exception: Metadata request failure: Cannot resolve destination host
Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:26)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:133)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at :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.1]
  • Operating System: [Mac]

Additional context
I guess is not the same #952 (review) but I remember that we had this issue recently

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugAdded to issues and PRs if they are addressing a bug

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions