genesisProtocolWrapper.stake(..)
should check result and throw an exception if not succesful
#215
Labels
genesisProtocolWrapper.stake(..)
should check result and throw an exception if not succesful
#215
GenesisProtocol.stake(..)
returnsfalse
if unsuccessful. This should be checked in Arc.js and thrown as an exception.Eg. this happens if staking once for
YES
and again withNO
(according to this line).Also, make sure cases like this are checked throughout the library.
Edit: in this case, the best way to check for this is to check if the
Stake
event was emitted sincefalse
may be returned in cases other than a failed stakeThe text was updated successfully, but these errors were encountered: