mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix: corrects _ prefixes
This commit is contained in:
@@ -210,9 +210,9 @@ using a second proxy:
|
||||
contract ProxyWithMoreFunctionality {
|
||||
PermissionlessProxy proxy;
|
||||
|
||||
function callOther(address _addr, bytes memory _payload) public
|
||||
function callOther(address addr, bytes memory payload) public
|
||||
returns (bool, bytes memory) {
|
||||
return proxy.callOther(_addr, _payload);
|
||||
return proxy.callOther(addr, payload);
|
||||
}
|
||||
// Other functions and other functionality
|
||||
}
|
||||
@@ -220,9 +220,9 @@ using a second proxy:
|
||||
// This is the full contract, it has no other functionality and
|
||||
// requires no privileges to work.
|
||||
contract PermissionlessProxy {
|
||||
function callOther(address _addr, bytes memory _payload) public
|
||||
function callOther(address addr, bytes memory payload) public
|
||||
returns (bool, bytes memory) {
|
||||
return _addr.call(_payload);
|
||||
return addr.call(payload);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,17 +331,17 @@ field of a ``struct`` that is the base type of a dynamic storage array. The
|
||||
contract Map {
|
||||
mapping (uint => uint)[] array;
|
||||
|
||||
function allocate(uint _newMaps) public {
|
||||
for (uint i = 0; i < _newMaps; i++)
|
||||
function allocate(uint newMaps) public {
|
||||
for (uint i = 0; i < newMaps; i++)
|
||||
array.push();
|
||||
}
|
||||
|
||||
function writeMap(uint _map, uint _key, uint _value) public {
|
||||
array[_map][_key] = _value;
|
||||
function writeMap(uint map, uint key, uint value) public {
|
||||
array[map][key] = value;
|
||||
}
|
||||
|
||||
function readMap(uint _map, uint _key) public view returns (uint) {
|
||||
return array[_map][_key];
|
||||
function readMap(uint map, uint key) public view returns (uint) {
|
||||
return array[map][key];
|
||||
}
|
||||
|
||||
function eraseMaps() public {
|
||||
|
||||
Reference in New Issue
Block a user