Closed Muaath5 closed 3 years ago
You have to give more context (like what changes you made to the authentication part of the code which is the only place we use BigInteger.cs for) also your fork breaks compatibility with our repo which makes it even harder to compare it. What I can tell you with 100% confidence is that I have upgraded this library to layer 121 and targeted .NET standard and It didn't break on me.
You have to give more context (like what changes you made to the authentication part of the code which is the only place we use
BigInteger.cs
for) also your fork breaks compatibility with our repo which makes it even harder to compare it. What I can tell you with 100% confidence is that I have upgraded this library to layer 121 and targeted .NET standard and It didn't break on me.
You can see my new library link in GitHub.
Hi,
I Forked TgSharp project to run it in .NET Core and update it to layer 121
My new library link:
TgSharp.NETCore
Error position
File: I Run it and I am getting error in
BigInteger.cs
file. Line inBigInteger.cs
: In line 344 in constructor (ctor
) when callingPow
method. Method: Inside methodCompareTo
method.Error:
NullRefrenceException
Stack trace is in photo above
NOTE:
Pow
method is usingEquals
method that usesCompareTo
method.Source code
CompareTo
method source:Line 344, in constructor (
ctor
):I am thinking the error is in
sign
variable, But how can I fix it?