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
(log/infof "issue %s: Contract deployed, transaction-hash: %s" issue-id (:tx-hash tx-info))
(transition {:issue-id issue-id
:transaction-hash (:tx-hash tx-info)
:tx-info tx-info} :deploying))
(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)))))

View File

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