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

Commit

Permalink
Renamed push to stack action to match name in reducer
Browse files Browse the repository at this point in the history
Push to stack action was not updating state. This was because of a naming mismatch between dispatched action and the name in the reducer (PUSH_TO_STACK vs PUSH_TO_TXSTACK).
  • Loading branch information
agildehaus6 authored and chasms committed Aug 20, 2018
1 parent f662892 commit 8f728a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DrizzleContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class DrizzleContract {
var stackId = contract.store.getState().transactionStack.length

// Add ID to "transactionStack" with empty value
contract.store.dispatch({ type: 'PUSH_TO_STACK' })
contract.store.dispatch({type: 'PUSH_TO_TXSTACK'})

// Dispatch tx to saga
// When txhash received, will be value of stack ID
Expand Down

0 comments on commit 8f728a1

Please sign in to comment.