Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

addNewBlock function does nothing if current block has length greater than 0 #137

Open
fewebahr opened this issue Jul 20, 2018 · 1 comment

Comments

@fewebahr
Copy link

fewebahr commented Jul 20, 2018

The addNewBlock function never adds a new block. If the current block has length 0, then it will merge the designated contents into the current block- but if the length is not 0, then no new block is added and the state is not updated.

The offending function is here:

I propose that we update the function so that addNewBlockAt is invoked if the current block has length greater than zero.

@brijeshb42
Copy link
Owner

Will you be able to submit a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants