Merge pull request #5878 from ethereum/const-opt

Move ConstantOptimiser constructor to header
This commit is contained in:
chriseth 2019-01-28 14:02:47 +01:00 committed by GitHub
commit 3fdd0ed239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -134,11 +134,6 @@ bigint LiteralMethod::gasNeeded() const
); );
} }
CodeCopyMethod::CodeCopyMethod(Params const& _params, u256 const& _value):
ConstantOptimisationMethod(_params, _value)
{
}
bigint CodeCopyMethod::gasNeeded() const bigint CodeCopyMethod::gasNeeded() const
{ {
return combineGas( return combineGas(

View File

@ -119,7 +119,8 @@ public:
class CodeCopyMethod: public ConstantOptimisationMethod class CodeCopyMethod: public ConstantOptimisationMethod
{ {
public: public:
explicit CodeCopyMethod(Params const& _params, u256 const& _value); explicit CodeCopyMethod(Params const& _params, u256 const& _value):
ConstantOptimisationMethod(_params, _value) {}
bigint gasNeeded() const override; bigint gasNeeded() const override;
AssemblyItems execute(Assembly& _assembly) const override; AssemblyItems execute(Assembly& _assembly) const override;