Skip to content

Commit aef32c5

Browse files
axicchriseth
authored andcommitted
Cannot specify ABIEncoderV2 pragma twice
1 parent a3f31b6 commit aef32c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/libsolidity/SolidityExecutionFramework.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SolidityExecutionFramework: public dev::test::ExecutionFramework
6565
{
6666
// Silence compiler version warning
6767
std::string sourceCode = "pragma solidity >=0.0;\n";
68-
if (dev::test::Options::get().useABIEncoderV2)
68+
if (dev::test::Options::get().useABIEncoderV2 && _sourceCode.find("pragma experimental ABIEncoderV2;") == std::string::npos)
6969
sourceCode += "pragma experimental ABIEncoderV2;\n";
7070
sourceCode += _sourceCode;
7171
m_compiler.reset(false);

0 commit comments

Comments
 (0)