aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-02-13 18:24:20 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-02-13 18:24:20 +0800
commit6902084231dbe9a3752afb167d7a6be07218f0cd (patch)
tree1a9d7a24f9f4b056ec8a7b147a896ba315829ee1
parentfa5c4c8857803620b976e781a31d743e04a48f95 (diff)
downloaddexon-solidity-6902084231dbe9a3752afb167d7a6be07218f0cd.tar.gz
dexon-solidity-6902084231dbe9a3752afb167d7a6be07218f0cd.tar.zst
dexon-solidity-6902084231dbe9a3752afb167d7a6be07218f0cd.zip
fix tx output
-rw-r--r--block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/block.cpp b/block.cpp
index 69c23660..3544a3f8 100644
--- a/block.cpp
+++ b/block.cpp
@@ -217,8 +217,8 @@ void doBlockTests(json_spirit::mValue& _v, bool _fillin)
txObject["data"] = toHex(tx.data());
txObject["gasLimit"] = toString(tx.gas());
txObject["gasPrice"] = toString(tx.gasPrice());
- txObject["r"] = toString(tx.signature().r);
- txObject["s"] = toString(tx.signature().s);
+ txObject["r"] = "0x" + toString(tx.signature().r);
+ txObject["s"] = "0x" + toString(tx.signature().s);
txObject["v"] = to_string(tx.signature().v + 27);
txObject["to"] = toString(tx.receiveAddress());
txObject["value"] = toString(tx.value());