-
Notifications
You must be signed in to change notification settings - Fork 2
Send Transaction #2
Description
Hi,
Thanks for all the effort so far, I tried to send transactions with the package but ran into a few problems. Will see if I can send a pull request later but here they are:
-
Signature misses ToString() method.
I think it should be ( as in the Java variant)
public override string ToString() { String rHex = Hex.ToHexString(R.ToByteArray()); while (rHex.Length< 64) { rHex = "0" + rHex; } String sHex = Hex.ToHexString(S.ToByteArray()); while (sHex.Length < 64) { sHex = "0" + sHex; } return rHex + sHex; } -
Fix in HttpProvider.cs
public Rep<CreateTxResult> CreateTransaction(TransactionPayload payload) { return Send<CreateTxResult, TransactionPayload>("GetContractAddressFromTransactionID", payload); }
The GetContractAddressFromTransactionID should be CreateTransaction.
If i correct the above but then I get an "Invalid Signature size". That is were I got stuck for now.