fix: corrects _ prefixes

This commit is contained in:
Richie
2022-03-14 08:03:10 -07:00
parent 7f360e61fc
commit beb51068bb
16 changed files with 185 additions and 185 deletions
+10 -10
View File
@@ -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 {