diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-01 17:43:06 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-02 03:50:03 +0800 |
commit | b3061225bcd1dd03cb1809b6193857d69cd7768f (patch) | |
tree | 63cb76a25e6e3eb5cbd63efd9c49be471f6585ef /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 3aacfc7e3569b27ca97dce41d886bbc3043546e0 (diff) | |
download | dexon-solidity-b3061225bcd1dd03cb1809b6193857d69cd7768f.tar.gz dexon-solidity-b3061225bcd1dd03cb1809b6193857d69cd7768f.tar.zst dexon-solidity-b3061225bcd1dd03cb1809b6193857d69cd7768f.zip |
.delegatecall() should always return a boolean of execution status
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 2c8cfd76..521d485f 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1560,7 +1560,7 @@ void ExpressionCompiler::appendExternalFunctionCall( utils().moveToStackTop(gasValueSize, _functionType.selfType()->sizeOnStack()); auto funKind = _functionType.kind(); - bool returnSuccessCondition = funKind == FunctionType::Kind::BareCall || funKind == FunctionType::Kind::BareCallCode; + bool returnSuccessCondition = funKind == FunctionType::Kind::BareCall || funKind == FunctionType::Kind::BareCallCode || funKind == FunctionType::Kind::BareDelegateCall; bool isCallCode = funKind == FunctionType::Kind::BareCallCode || funKind == FunctionType::Kind::CallCode; bool isDelegateCall = funKind == FunctionType::Kind::BareDelegateCall || funKind == FunctionType::Kind::DelegateCall; |