Skip to content

Commit

Permalink
#1751 case where no contract is called
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jan 17, 2024
1 parent 94fd7c1 commit 64be1d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
11 changes: 4 additions & 7 deletions libhistoric/AlethStandardTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,13 @@ AlethStandardTrace::AlethStandardTrace(
{ TraceType::NOOP_TRACER, m_noopTracePrinter } },
m_blockAuthor( _blockAuthor ),
m_isCall( _isCall ),
m_value(_t.value()),
m_gasLimit(_t.gas()),
m_inputData(_t.data()),
m_gasPrice(_t.gasPrice())
{
m_value( _t.value() ),
m_gasLimit( _t.gas() ),
m_inputData( _t.data() ),
m_gasPrice( _t.gasPrice() ) {
// mark from and to accounts as accessed
m_accessedAccounts.insert( m_from );
m_accessedAccounts.insert( m_to );


}
const u256& AlethStandardTrace::getGasLimit() const {
return m_gasLimit;
Expand Down
2 changes: 1 addition & 1 deletion libhistoric/TraceOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TraceOptions {

[[nodiscard]] std::string toString() {
std::stringstream s;
s << (uint64_t ) tracerType;
s << ( uint64_t ) tracerType;
s << disableStorage;
s << enableMemory;
s << disableStack;
Expand Down
1 change: 0 additions & 1 deletion libweb3jsonrpc/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ Json::Value Debug::debug_traceTransaction( string const&
auto blockNumber = localisedTransaction.blockNumber();



if ( !m_eth.isKnown( blockNumber ) ) {
THROW_TRACE_JSON_EXCEPTION( "Unknown block number:" + to_string( blockNumber ) );
}
Expand Down
4 changes: 0 additions & 4 deletions test/historicstate/hardhat/scripts/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,8 @@ async function main(): Promise<void> {

let deployedContract = await deployTestContract();


const transferHash: string = await callTestContractRun(deployedContract);




await getAndPrintCommittedTransactionTrace(transferHash, DEFAULT_TRACER, TEST_TRANSFER_DEFAULTTRACER_FILE_NAME);
await getAndPrintCommittedTransactionTrace(transferHash, CALL_TRACER, TEST_TRANSFER_CALLTRACER_FILE_NAME);
await getAndPrintCommittedTransactionTrace(transferHash, PRESTATE_TRACER, TEST_TRANSFER_PRESTATETRACER_FILE_NAME);
Expand Down

0 comments on commit 64be1d1

Please sign in to comment.