mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
transaction.cpp update due to the code changes
This commit is contained in:
parent
34249753e8
commit
99ac8ecd10
@ -56,7 +56,7 @@ Transaction createTransactionFromFields(mObject& _tObj)
|
|||||||
u256 s = h256(fromHex(_tObj["s"].get_str()));
|
u256 s = h256(fromHex(_tObj["s"].get_str()));
|
||||||
rlpStream << bigint(_tObj["v"].get_str()) << r << s;
|
rlpStream << bigint(_tObj["v"].get_str()) << r << s;
|
||||||
|
|
||||||
return Transaction(rlpStream.out(), true);
|
return Transaction(rlpStream.out(), CheckSignature::Sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
||||||
@ -74,7 +74,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
txFromRlp = Transaction(rlpReaded, true);
|
txFromRlp = Transaction(rlpReaded, CheckSignature::Sender);
|
||||||
if (!txFromRlp.signature().isValid())
|
if (!txFromRlp.signature().isValid())
|
||||||
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
|
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Transaction txFromFields(rlpStream.out(), true);
|
Transaction txFromFields(rlpStream.out(), CheckSignature::Sender);
|
||||||
if (!txFromFields.signature().isValid())
|
if (!txFromFields.signature().isValid())
|
||||||
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
|
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"RLPHexElementsWithStartingZeros" : {
|
"RLPWrongHexElements" : {
|
||||||
"transaction" :
|
"transaction" :
|
||||||
{
|
{
|
||||||
"data" : "0x0000000012",
|
"data" : "0x0000000012",
|
||||||
|
Loading…
Reference in New Issue
Block a user