diff options
author | chriseth <chris@ethereum.org> | 2017-08-02 21:46:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 21:46:02 +0800 |
commit | bd9e91085b239323e3280c720135059c5e55cacb (patch) | |
tree | 0de977822159a3b495f5c7b936dcd2e145a75c3e /libsolidity | |
parent | 04166ce1085daf8a0fb975b701e7b5980696d5bc (diff) | |
parent | d1b13c0624f93913c08fc2fdd152abef3002d2d2 (diff) | |
download | dexon-solidity-bd9e91085b239323e3280c720135059c5e55cacb.tar.gz dexon-solidity-bd9e91085b239323e3280c720135059c5e55cacb.tar.zst dexon-solidity-bd9e91085b239323e3280c720135059c5e55cacb.zip |
Merge pull request #2679 from ethereum/delegatecall
.delegatecall() should always return a boolean of execution status
Diffstat (limited to 'libsolidity')
-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; |