Move ConstantOptimiser constructor to header

This commit is contained in:
Alex Beregszaszi 2019-01-28 11:20:46 +00:00
parent 9836f90e70
commit 9d52325b29
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
{
return combineGas(

View File

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