Full disclosure, this voting smart contract was generated by Copilot. Consider the source. In this function @sp.entry_point
def vote(self, param):
sp.cast(param, sp.record(delegator=sp.string,vote=sp.string))
assert self.data.votes.contains(param.delegator)
if param.vote == “yay”:
self.data.votes[param.delegator].yay += 1
elif param.vote == “nay”:
self.data.votes[param.delegator].nay += 1
I am getting this error when running: “File “”, line 20
SyntaxError: Not a statement: if param.vote == “yay”:”
Was unable to find an answer in the forum or in the online guides or examples