0

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?

https://kovan.etherscan.io/tx/0xacfe4ec5acbdf57da0fd099e94b03712eb1f537f9a794b4c42ad362478f1cb0e

 function launch(uint256 amount, address player, string memory name) public returns(bool){
    ...
    
    balances[player] = amount;
    names[player] = name;
    addresses.push(player);
    
    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.