Skip to content

Commit

Permalink
1545 Fix pull request comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jan 7, 2025
1 parent 91c218f commit 1b67a15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions libethereum/ClientBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ class ClientBase : public Interface {
bytes codeAt( Address _a ) const override;
h256 codeHashAt( Address _a ) const override;
std::map< h256, std::pair< u256, u256 > > storageAt( Address _a ) const override;

/// Estimate gas usage for call/create.
/// @param _maxGas An upper bound value for estimation, if not provided default value of
/// c_maxGasEstimate will be used.
/// @param _callback Optional callback function for progress reporting
std::pair< u256, ExecutionResult > estimateGas( Address const& _from, u256 _value,
Address _dest, bytes const& _data, int64_t _maxGas, u256 _gasPrice,
GasEstimationCallback const& _callback = GasEstimationCallback() ) override;
Expand Down
2 changes: 0 additions & 2 deletions libskale/OverlayDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ using std::vector;
#include <libdevcore/db.h>
#include <libethereum/BlockDetails.h>

// #include "SHA3.h"

using dev::bytes;
using dev::bytesConstRef;
using dev::h160;
Expand Down
2 changes: 1 addition & 1 deletion skale-vm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int main( int argc, char** argv ) {

state.addBalance( sender, value );

// H1st 0 here is for gasPrice
// First 0 here is for gasPrice
Executive executive( state, envInfo, chainParams, 0, 0 );

ExecutionResult res;
Expand Down
2 changes: 1 addition & 1 deletion skaled/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ int main( int argc, char** argv ) try {
if ( vm.count( "config" ) ) {
try {
configPath = vm["config"].as< string >();
std::cout << "Using config file:" << configPath << endl;
clog( VerbosityInfo, "main") << "Using config file:" << configPath;
if ( !fs::is_regular_file( configPath.string() ) )
throw std::runtime_error( "Bad config file path" );
configJSON = contentsString( configPath.string() );
Expand Down

0 comments on commit 1b67a15

Please sign in to comment.