diff --git a/src/clj/commiteth/eth/core.clj b/src/clj/commiteth/eth/core.clj index 64c2601..67252ea 100644 --- a/src/clj/commiteth/eth/core.clj +++ b/src/clj/commiteth/eth/core.clj @@ -95,7 +95,7 @@ value (format "0x%x" 1)] (send-transaction (eth-account) nil value {:data data}))) -(defn- format-call-params +(defn format-call-params [method-id & params] (let [params (join (map format-param params))] (str method-id params))) @@ -108,7 +108,7 @@ (defn execute [from contract 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})))