Bug fix: add transaction-hash to transition fn invocation during deployment

This commit is contained in:
Vitaliy Vlasov 2018-05-15 16:22:57 +03:00
parent 6b5790fde7
commit 375b47e8e8
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@
(do (do
(log/infof "issue %s: Contract deployed, transaction-hash: %s" issue-id (:tx-hash tx-info)) (log/infof "issue %s: Contract deployed, transaction-hash: %s" issue-id (:tx-hash tx-info))
(transition {:issue-id issue-id (transition {:issue-id issue-id
:transaction-hash (:tx-hash tx-info)
:tx-info tx-info} :deploying)) :tx-info tx-info} :deploying))
(log/errorf "issue %s Failed to deploy contract to %s" issue-id owner-address)) (log/errorf "issue %s Failed to deploy contract to %s" issue-id owner-address))
(catch Exception ex (log/errorf ex "issue %s: deploy-contract exception" issue-id))))) (catch Exception ex (log/errorf ex "issue %s: deploy-contract exception" issue-id)))))

View File

@ -357,7 +357,7 @@
tokens tokens
winner-login) winner-login)
:else nil)] :else nil)]
(log/debug (str "Updating " owner "/" repo "/" issue-number (log/info (str "Updating " owner "/" repo "/" issue-number
" comment #" comment-id " with contents: " comment)) " comment #" comment-id " with contents: " comment))
(if (= state :deploying) (if (= state :deploying)
(let [resp (issues/create-comment owner repo issue-number comment (self-auth-params)) (let [resp (issues/create-comment owner repo issue-number comment (self-auth-params))