Skip to content

Commit

Permalink
fix(merge): solve some merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghang8612 committed Aug 8, 2024
1 parent dff073f commit 4cc44b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions libsolidity/analysis/GlobalContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void GlobalContext::addVerifyMintProofMethod() {
strings returnParameterNames;
returnParameterNames.push_back("msg");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("verifyMintProof"), "verifyMintProof", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("verifyMintProof"), "verifyMintProof", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down Expand Up @@ -221,7 +221,7 @@ void GlobalContext::addVerifyBurnProofMethod() {
strings returnParameterNames;
returnParameterNames.push_back("msg");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("verifyBurnProof"), "verifyBurnProof", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("verifyBurnProof"), "verifyBurnProof", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down Expand Up @@ -273,7 +273,7 @@ void GlobalContext::addVerifyTransferProofMethod() {
strings returnParameterNames;
returnParameterNames.push_back("msg");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("verifyTransferProof"), "verifyTransferProof", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("verifyTransferProof"), "verifyTransferProof", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down Expand Up @@ -305,7 +305,7 @@ void GlobalContext::addPedersenHashMethod() {
strings returnParameterNames;
returnParameterNames.push_back("msg");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("pedersenHash"), "pedersenHash", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("pedersenHash"), "pedersenHash", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down Expand Up @@ -333,7 +333,7 @@ void GlobalContext::addBatchValidateSignMethod() {
strings returnParameterNames;
returnParameterNames.push_back("ok");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("batchvalidatesign"), "batchvalidatesign", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("batchvalidatesign"), "batchvalidatesign", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down Expand Up @@ -363,7 +363,7 @@ void GlobalContext::addValidateMultiSignMethod() {
strings returnParameterNames;
returnParameterNames.push_back("ok");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("validatemultisign"), "validatemultisign", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("validatemultisign"), "validatemultisign", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -387,7 +387,7 @@ void GlobalContext::addVoteMethod() {
parameterNames.push_back("tronpowerList");
strings returnParameterNames;

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("vote"), "vote", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("vote"), "vote", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -407,7 +407,7 @@ void GlobalContext::addRewardBalanceMethod() {
strings returnParameterNames;
returnParameterNames.push_back("result");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("rewardBalance"), "rewardBalance", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("rewardBalance"), "rewardBalance", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -430,7 +430,7 @@ void GlobalContext::addIsSRCandidateMethod() {
strings returnParameterNames;
returnParameterNames.push_back("ok");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("isSrCandidate"), "isSrCandidate", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("isSrCandidate"), "isSrCandidate", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -455,7 +455,7 @@ void GlobalContext::addVoteCountMethod() {
strings returnParameterNames;
returnParameterNames.push_back("result");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("voteCount"), "voteCount", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("voteCount"), "voteCount", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -478,7 +478,7 @@ void GlobalContext::addTotalVoteCountMethod() {
strings returnParameterNames;
returnParameterNames.push_back("result");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("totalVoteCount"), "totalVoteCount", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("totalVoteCount"), "totalVoteCount", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -501,7 +501,7 @@ void GlobalContext::addReceivedVoteCountMethod() {
strings returnParameterNames;
returnParameterNames.push_back("result");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("receivedVoteCount"), "receivedVoteCount", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("receivedVoteCount"), "receivedVoteCount", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand All @@ -524,7 +524,7 @@ void GlobalContext::addUsedVoteCountMethod() {
strings returnParameterNames;
returnParameterNames.push_back("result");

m_magicVariables.push_back(make_shared<MagicVariableDeclaration>(magicVariableToID("usedVoteCount"), "usedVoteCount", TypeProvider::function(
m_magicVariables.push_back(std::make_shared<MagicVariableDeclaration>(magicVariableToID("usedVoteCount"), "usedVoteCount", TypeProvider::function(
parameterTypes,
returnParameterTypes,
parameterNames,
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/parsing/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ ASTPointer<Expression> Parser::parseLiteral()
))
{
if (TokenTraits::isEtherSubdenomination(m_scanner->currentToken())) {
fatalParserError(9999_error,string("Ether unit denomination is not supported by the compiler"));
fatalParserError(9999_error, std::string("Ether unit denomination is not supported by the compiler"));
}
nodeFactory.markEndPosition();
Literal::SubDenomination subDenomination = static_cast<Literal::SubDenomination>(m_scanner->currentToken());
Expand Down

0 comments on commit 4cc44b8

Please sign in to comment.