Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #21 from elopio/ui/tx-error
Browse files Browse the repository at this point in the history
ui: do not use abbreviation
  • Loading branch information
facuspagnuolo committed Jul 12, 2018
2 parents 18f582e + 0dc8d9c commit aaeb8c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/actions/donations.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DonationsActions = {
events.watch(function(error, result) {
if(error) AlertActions.showError(error)
else dispatch(DonationsActions.add({
...result.args,
...result.args,
tx: result.transactionHash
}))
})
Expand All @@ -35,15 +35,15 @@ const DonationsActions = {
dispatch(FetchingActions.start(message))
try {
const basil = Basil.at(BASIL_ADDRESS)
await basil.donate(r, g, b, {
from: donor,
await basil.donate(r, g, b, {
from: donor,
value: toWei(value),
gas: 400000
})
dispatch(FetchingActions.stop())
} catch(error) {
dispatch(FetchingActions.stop())
dispatch(AlertActions.showError(error, 'Error processing tx.'))
dispatch(AlertActions.showError(error, 'Error processing transaction.'))
}
}
},
Expand Down

0 comments on commit aaeb8c2

Please sign in to comment.