mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
268 B
Solidity
12 lines
268 B
Solidity
|
contract C {
|
||
|
mapping(address => address payable) public m;
|
||
|
function f(address payable arg) public returns (address payable r) {
|
||
|
address payable a = m[arg];
|
||
|
r = arg;
|
||
|
address c = address(this);
|
||
|
m[c] = address(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|