polkadot_api_dotnet icon indicating copy to clipboard operation
polkadot_api_dotnet copied to clipboard

.NET Core 2.2 has reached end of life, meaning it is no longer supported.

Open 2075 opened this issue 5 years ago • 5 comments

Why do you use .net core 2.2? It has reached end of life and is not supported anymore.

Wouldn't it make sense to use a LTS version instead?

https://dotnet.microsoft.com/download/dotnet-core

2075 avatar Jul 03 '20 20:07 2075

To make the lib more portable, it could make sense to drop .Net Core target, and only target .Net Standard v2.1.

stiiifff avatar Jul 08 '20 15:07 stiiifff

@stiiifff I tryed the netstandart2.0 branch to connect to a modified version of the substrate-node-template,

app.GetStorage("Balances", "TotalIssuance") is returning a value like estimated.

however trying to access the storage of my own pallet - Item[AllMogwaisCount,type:[0,0,u64,,,,False],mod:1]

app.GetStorage("Dmog", "AllMogwaisCount"); is returning empty string {"jsonrpc":"2.0","result":null,"id":"4"}

However in the PolkaDot.js.apps it shows the correct value ....

image

I really don't understand why this is possible.

wss://dmog.worldofmogwais.com

any help appreciated ... sry for hijacking this issue :-)

darkfriend77 avatar Sep 03 '20 22:09 darkfriend77

you are welcome. actually i checked out the .net port for my other native port to swift. in the process i stumbled upon the version issue.

maybe your issue is related to the aggregated types in your node and pallet, which are used for the rpc calls etc, maybe the .net api has to learn that the hard way (manually).

i see you are in zh as well, are you building in unity?

2075 avatar Sep 03 '20 22:09 2075

yes, :-) I'm bulding it for an interface for unity3d.

Oh, I didn't sa you're also located in zh.

reading your tags "breeding a retro zoo" it looks like we got some stuff in common.

I would be glad to get a private conversation with you ... :-) if you re okay with that.

darkfriend77 avatar Sep 04 '20 05:09 darkfriend77

... It seems it is related to a storage name renaming ... as soon as we change the storage name of the pallet .... and its construct in the runtime ... it seems to break rpcs, however in the polkadotjs it is still displaying correct

darkfriend77 avatar Sep 04 '20 13:09 darkfriend77