mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests/Docs: changing type of msg.sender and tx.origin into address
And also making the type of address(literal) as non-payable address.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace solidity::frontend::test
|
||||
namespace
|
||||
{
|
||||
static char const* registrarCode = R"DELIMITER(
|
||||
pragma solidity >=0.4.0 <0.9.0;
|
||||
pragma solidity >=0.7.0 <0.9.0;
|
||||
|
||||
abstract contract NameRegister {
|
||||
function addr(string memory _name) public virtual view returns (address o_owner);
|
||||
@@ -143,12 +143,12 @@ contract GlobalRegistrar is Registrar, AuctionSystem {
|
||||
{
|
||||
if (block.timestamp < m_toRecord[_name].renewalDate)
|
||||
revert();
|
||||
bid(_name, msg.sender, msg.value);
|
||||
bid(_name, payable(msg.sender), msg.value);
|
||||
} else {
|
||||
Record storage record = m_toRecord[_name];
|
||||
if (record.owner != 0x0000000000000000000000000000000000000000)
|
||||
revert();
|
||||
m_toRecord[_name].owner = msg.sender;
|
||||
m_toRecord[_name].owner = payable(msg.sender);
|
||||
emit Changed(_name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user