Class: TezosClient::Tools::AnnotsToType

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
lib/tezos_client/tools/annots_to_type.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



14
15
16
17
18
# File 'lib/tezos_client/tools/annots_to_type.rb', line 14

def execute
  return { "prim" => typed_annots.values.first } if typed_annots.size == 1

  { "prim" => "pair", "args" => generate_type_args(ordered_annots) }
end