Add blockhash to Solidity.

Autopadding fix.
This commit is contained in:
Gav Wood
2015-01-15 13:59:35 -05:00
parent 80eec8b308
commit 911916beb7
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -282,6 +282,13 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
m_context << u256(32) << u256(0) << eth::logInstruction(logNumber);
break;
}
case Location::BLOCKHASH:
{
arguments[0]->accept(*this);
appendTypeConversion(*arguments[0]->getType(), *function.getParameterTypes()[0], true);
m_context << eth::Instruction::BLOCKHASH;
break;
}
case Location::ECRECOVER:
case Location::SHA256:
case Location::RIPEMD160: