module TezosClient::SmartpyInterface::SmartpyWrapper

Wrapper used to call the tezos-client binary

Public Instance Methods

call_smartpy(command) click to toggle source
# File lib/tezos_client/smartpy_inteface/smartpy_wrapper.rb, line 7
def call_smartpy(command)
  cmd = smartpy_cmd + command

  Tools::SystemCall.execute(cmd)
rescue SysCallError => e
  raise SmartPyError, e.to_s
end
smartpy_cmd() click to toggle source
# File lib/tezos_client/smartpy_inteface/smartpy_wrapper.rb, line 15
def smartpy_cmd
  [ "SmartPy.sh" ]
end