[go: up one dir, main page]

Introduce new Ticket constructor

Problem

Users cannot know they are transferring tickets by just inspecting parameters, which look like Pair 0x01fb.. (Pair "foo" 1). This means they can be tricked into sending tickets without knowing. This becomes problematic when we enable implicit accounts to send tickets via Transaction (!10919 (merged))

Solution

Introduce a new Ticket primitive so ticks appear as tickets in the Micheline expression so tickets appear as tickets in the Micheline expression.

So instead of:

Pair 0x01fb08747351ab3652f772910c4565880d8df616f800 (Pair "Ticket" 1)

We would have something like:

Ticket (0x01fb08747351ab3652f772910c4565880d8df616f800 "Ticket" 1)

Tasks

Edited by YunYan