i put htat comment when i was posting my code here, just so that the person testing it knew that they had to put the contracts address, and not the accounts address, also i dont know how to start and finish a comment in the same line xD.
When you say that im using onlyOwner incorrectly, do you mean that the function is not doing what it is supposed to do? or that im defining it in a non traditional way?
and also could you help me, with my question i had in the first post? this one:
i was trying to make the currentProposa
l function so that it didnt need input from the users, so that they didnt have to do the effort to know the index of the current proposal, but then i tried this :
function currentProposal () public view returns (//parameters){
return (proposedTx[proposedTx.length].amount, ā¦//rest of the array)
This didnt work for me, i also tried other stuff like 0+proposedTx.length
xD, but it didnt work, i knnow i should know the answer for this, but i dont D:
one last thing xD, my code looks like unfinished because it is xD, is just that i was eager to post the contract already, but yes my contract needs mroe work