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

Issue with Unity 2020.1.6f1 and Walletconnect #9

Open
Sterling-Malory-Archer opened this issue Oct 22, 2021 · 2 comments
Open

Issue with Unity 2020.1.6f1 and Walletconnect #9

Sterling-Malory-Archer opened this issue Oct 22, 2021 · 2 comments

Comments

@Sterling-Malory-Archer
Copy link

Hi everyone,

I recently implemented Wallconnect.Unity to my Unity project.

I also added Walletconnect.Nethereum folder to my Unity project.

When I import the DLLs from https://github.com/Nethereum/Unity3dSimpleSampleNet461/tree/master/Assets/Plugins, I get this error:

Assets\WalletConnectUnity\WalletConnectSharp.NEthereum\WalletConnectNEthereumExtensions.cs(56,21): 
error CS0012: The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. 
You must add a reference to assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

Any help is kindly appreciated

@juanfranblanco
Copy link
Member

@Sterling-Malory-Archer that is great (you have integrated it with WalletConnect). Unity in the latest versions it includes the json.net library with is aot compatible and in recent builds of Nethereum (when packaging the dlls this is what it is included, although you need to remove it as it is duplicated). Now for WalletConnect the reference the normal version, so this might be an issue. You might need to copy the source directly. It is my plan to provide an example when possible of this, but first need to simplify the Unity packaging.

@Sterling-Malory-Archer
Copy link
Author

@Sterling-Malory-Archer that is great (you have integrated it with WalletConnect). Unity in the latest versions it includes the json.net library with is aot compatible and in recent builds of Nethereum (when packaging the dlls this is what it is included, although you need to remove it as it is duplicated). Now for WalletConnect the reference the normal version, so this might be an issue. You might need to copy the source directly. It is my plan to provide an example when possible of this, but first need to simplify the Unity packaging.

Hi Juan,

Thank you for responding, so you said I should copy the source directly, can you tell me which source?

So I should implement This SimpleSampleNet461 libraries and Walletconnect, delete the Newtonsoft.Json from the Walletconnect import and Nethereum one?

I am a total beginner so any help is kindly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants