archethic-node
archethic-node copied to clipboard
Smart Contracts: we should not be able to redeclare functions/actions/conditions
@version 1
condition triggered_by: transaction, as: []
actions triggered_by: transaction do
Contract.set_content "Hello world!"
end
condition triggered_by: transaction, as: []
actions triggered_by: transaction do
Contract.set_content "Hello2 world!"
end
export fun concat(a,b) do
"#{a}#{b}"
end
export fun concat(a,b) do
"#{a}-#{b}"
end
I expect this code to fail to parse.