mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix typos.
This commit is contained in:
@@ -292,11 +292,11 @@ void ViewPureChecker::endVisit(FunctionCall const& _functionCall)
|
||||
if (_functionCall.annotation().kind != FunctionCallKind::FunctionCall)
|
||||
return;
|
||||
|
||||
StateMutability mut = dynamic_cast<FunctionType const&>(*_functionCall.expression().annotation().type).stateMutability();
|
||||
StateMutability mutability = dynamic_cast<FunctionType const&>(*_functionCall.expression().annotation().type).stateMutability();
|
||||
// We only require "nonpayable" to call a payble function.
|
||||
if (mut == StateMutability::Payable)
|
||||
mut = StateMutability::NonPayable;
|
||||
reportMutability(mut, _functionCall.location());
|
||||
if (mutability == StateMutability::Payable)
|
||||
mutability = StateMutability::NonPayable;
|
||||
reportMutability(mutability, _functionCall.location());
|
||||
}
|
||||
|
||||
bool ViewPureChecker::visit(MemberAccess const& _memberAccess)
|
||||
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
/// Stack post: <shifted_value>
|
||||
void rightShiftNumberOnStack(unsigned _bits);
|
||||
|
||||
/// Appends code that computes tha Keccak-256 hash of the topmost stack element of 32 byte type.
|
||||
/// Appends code that computes the Keccak-256 hash of the topmost stack element of 32 byte type.
|
||||
void computeHashStatic();
|
||||
|
||||
/// Bytes we need to the start of call data.
|
||||
|
||||
@@ -601,7 +601,7 @@ void Scanner::scanToken()
|
||||
{
|
||||
tie(token, m, n) = scanIdentifierOrKeyword();
|
||||
|
||||
// Special case for hexademical literals
|
||||
// Special case for hexadecimal literals
|
||||
if (token == Token::Hex)
|
||||
{
|
||||
// reset
|
||||
|
||||
Reference in New Issue
Block a user