aboutsummaryrefslogtreecommitdiffstats
path: root/transaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'transaction.cpp')
-rw-r--r--transaction.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/transaction.cpp b/transaction.cpp
index 9fe91c6e..70c4454f 100644
--- a/transaction.cpp
+++ b/transaction.cpp
@@ -52,9 +52,7 @@ Transaction createTransactionFromFields(mObject& _tObj)
else
rlpStream << Address(_tObj["to"].get_str());
rlpStream << bigint(_tObj["value"].get_str()) << importData(_tObj);
- u256 r = h256(fromHex(_tObj["r"].get_str()));
- u256 s = h256(fromHex(_tObj["s"].get_str()));
- rlpStream << bigint(_tObj["v"].get_str()) << r << s;
+ rlpStream << bigint(_tObj["v"].get_str()) << bigint(_tObj["r"].get_str()) << bigint(_tObj["s"].get_str());
return Transaction(rlpStream.out(), CheckSignature::Sender);
}
@@ -132,7 +130,6 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
if (tObj.count("value") > 0)
rlpStream << bigint(tObj["value"].get_str());
-
if (tObj.count("data") > 0)
rlpStream << importData(tObj);
@@ -140,16 +137,10 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
rlpStream << bigint(tObj["v"].get_str());
if (tObj.count("r") > 0)
- {
- u256 r = h256(fromHex(tObj["r"].get_str()));
- rlpStream << r;
- }
+ rlpStream << bigint(tObj["r"].get_str());
if (tObj.count("s") > 0)
- {
- u256 s = h256(fromHex(tObj["s"].get_str()));
- rlpStream << s;
- }
+ rlpStream << bigint(tObj["s"].get_str());
if (tObj.count("extrafield") > 0)
rlpStream << bigint(tObj["extrafield"].get_str());