removed wei from execute, changed format-call-params to public

This commit is contained in:
Ricardo Guilherme Schmidt 2017-05-25 05:51:13 -03:00
parent d271f555e5
commit 0d84b80456
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@
value (format "0x%x" 1)] value (format "0x%x" 1)]
(send-transaction (eth-account) nil value {:data data}))) (send-transaction (eth-account) nil value {:data data})))
(defn- format-call-params (defn format-call-params
[method-id & params] [method-id & params]
(let [params (join (map format-param params))] (let [params (join (map format-param params))]
(str method-id params))) (str method-id params)))
@ -108,7 +108,7 @@
(defn execute (defn execute
[from contract method-id & params] [from contract method-id & params]
(let [data (apply format-call-params method-id params) (let [data (apply format-call-params method-id params)
value (format "0x%x" 1)] value (format "0x%x" 0)]
(send-transaction from contract value {:data data}))) (send-transaction from contract value {:data data})))