Prohibit operation duplication
Clarification and motivation
It's prohibited to duplicate chain operations, however, it's not prohibited in morley interpreter.
E.g. replay.tz
contract calling
via tezos-client
fails with:
Internal operation replay attempt:
Internal transaction:
Amount: ꜩ0
From: KT1UW5hY5RMncPQDPmSUWGSN6WBih8SrpCN1
To: KT1UW5hY5RMncPQDPmSUWGSN6WBih8SrpCN1
While stack exec -- morley run --contract replay.tz --parameter 'Unit' --storage 'Unit
fails with
<RuntimeFailure: (Gas limit exceeded on contract execution, [])>
.
Acceptance criteria
Our interpreter prohibits operation duplication.
Edited by Roman Melnikov