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

Buy listed NFT not working  #998

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
I set the data to buy the NFT based on the previously listed NFT, but I get a error.

@sneakzttv buy NFT is not in gaming dashboard, are we sure that this functionality is working? we can skip it otherwise for now.

Steps
Steps to reproduce the behavior:

  1. Use the scene [SampleLogin or SampleLogin - Web3Auth]
  2. Login with [Web3Auth or Remote wallet]
  3. Click on Purchase NFT button in Marketplace section

Expected behavior
Transaction is success and the NFT is owned by the new address

Console errors

FormatException: The value could not be parsed.
System.Numerics.BigNumber.ParseBigInteger (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <4e334f13171643b6a8290d57ecc16bd7>:0)
System.Numerics.BigNumber.ParseBigInteger (System.String value, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <4e334f13171643b6a8290d57ecc16bd7>:0)
System.Numerics.BigInteger.Parse (System.String value, System.Globalization.NumberStyles style, System.IFormatProvider provider) (at <4e334f13171643b6a8290d57ecc16bd7>:0)
System.Numerics.BigInteger.Parse (System.String value, System.Globalization.NumberStyles style) (at <4e334f13171643b6a8290d57ecc16bd7>:0)
System.Numerics.BigInteger.Parse (System.String value) (at <4e334f13171643b6a8290d57ecc16bd7>:0)
Scripts.EVM.Marketplace.Marketplace.PurchaseNft (System.String _marketplaceContract, System.String _itemId, System.String _amountToSend) (at ./Library/PackageCache/io.chainsafe.web3-unity.marketplace@8365aedec2/Runtime/Scripts/Marketplace/Marketplace.cs:377)
MarketplaceCalls.PurchaseNftFromMarketplace () (at Assets/Samples/web3.unity SDK/2.6.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs:268)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <e307bbb467104258887a104f6151f183>: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)

Screenshots/Video
Screenshot 2024-06-03 at 10 44 14 AM

Metadata

Metadata

Assignees

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