The below function was working fine until I added a string parameter and saved the string to a mapping. Now when I call it it fails with an 'out of stack' exception. Is there something I'm doing wrong related to strings? What would cause an out of stack exception in this case?


 function launch(uint256 amount, address player, string memory name) public returns(bool){
    balances[player] = amount;
    names[player] = name;
    emit created(player, amount, name);
    return true;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.