Skip to content

Commit

Permalink
Merge pull request #833 from thereapman/rpc-tx-rsv
Browse files Browse the repository at this point in the history
Add R,S,V to transaction on RPC
  • Loading branch information
tkstanczak authored Aug 27, 2019
2 parents b5cf11a + d4be00e commit e71a934
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Nethermind/Nethermind.JsonRpc/Data/TransactionForRpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace Nethermind.JsonRpc.Data
{
public class TransactionForRpc
{
{
public TransactionForRpc(Keccak blockHash, BigInteger? blockNumber, int? txIndex, Transaction transaction)
{
Hash = transaction.Hash;
Expand All @@ -39,8 +39,11 @@ public TransactionForRpc(Keccak blockHash, BigInteger? blockNumber, int? txIndex
GasPrice = transaction.GasPrice;
Gas = transaction.GasLimit;
Input = Data = transaction.Data ?? transaction.Init;
R = transaction.Signature?.R;
S = transaction.Signature?.S;
V = (UInt256?) transaction.Signature?.V;
}

// ReSharper disable once UnusedMember.Global
public TransactionForRpc()
{
Expand All @@ -57,8 +60,12 @@ public TransactionForRpc()
public BigInteger? GasPrice { get; set; }
public BigInteger? Gas { get; set; }
public byte[] Data { get; set; }

public byte[] Input { get; set; }
public UInt256? V { get; set; }

public byte[] S { get; set; }

public byte[] R { get; set; }

public Transaction ToTransaction()
{
Expand All @@ -81,4 +88,4 @@ public Transaction ToTransaction()
return tx;
}
}
}
}

0 comments on commit e71a934

Please sign in to comment.