Am using pragma solidity >=0.7.0 <0.9.0;
.
Line 42
with the below function:
function addXtoAccName( address _accNumber, string _xtoName ) public memory {
accounts[_accNumber].xtoDisplayName = _xtoName;
accounts[_accNumber].xtoAccNumber = _accNumber;
}
is causing this error message:
ParserError: Expected '{' but
got 'memory'
:
:
42 | function addXtoAccName(
address _accNumber, string
_xtoName ) public membory {
| ^^^^^^
Can someone explain what am I doing wrong on line 42?