In row 23: message.setFeePayer(signer); maybe you mean: message.setFeePayer(fromPublicKey); otherwise the project is not compiled