diff options
-rw-r--r-- | GlobalContext.cpp | 2 | ||||
-rw-r--r-- | Types.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/GlobalContext.cpp b/GlobalContext.cpp index e958352f..d8b63707 100644 --- a/GlobalContext.cpp +++ b/GlobalContext.cpp @@ -58,7 +58,7 @@ GlobalContext::GlobalContext(): FunctionType::Location::ECRECOVER)), make_shared<MagicVariableDeclaration>("ripemd160", make_shared<FunctionType>(TypePointers({std::make_shared<IntegerType>(256, IntegerType::Modifier::HASH)}), - TypePointers({std::make_shared<IntegerType>(256, IntegerType::Modifier::HASH)}), + TypePointers({std::make_shared<IntegerType>(160, IntegerType::Modifier::HASH)}), FunctionType::Location::RIPEMD160))} { } @@ -397,11 +397,11 @@ MagicType::MagicType(MagicType::Kind _kind): break; case Kind::MSG: m_members = MemberList({{"sender", make_shared<IntegerType const>(0, IntegerType::Modifier::ADDRESS)}, + {"gas", make_shared<IntegerType const>(256)}, {"value", make_shared<IntegerType const>(256)}}); break; case Kind::TX: m_members = MemberList({{"origin", make_shared<IntegerType const>(0, IntegerType::Modifier::ADDRESS)}, - {"gas", make_shared<IntegerType const>(256)}, {"gasprice", make_shared<IntegerType const>(256)}}); break; default: |