removed wei from execute, changed format-call-params to public
This commit is contained in:
parent
d271f555e5
commit
0d84b80456
|
@ -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})))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue