This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Truffle - test: Cannot create property 'negative' on number '1' #1909
Comments
@flockonus Thanks for the heads up! We'll keep this in mind and follow the BN issue that you linked above. |
Thanks @eggplantzzz , the workaround I'm using currently is to cast the string also into BN. n = new web3.utils.BN('1'); n.sub(web3.utils.toBN('1')) |
Hey @flockonus , turns ou that BN does not take strings for those methods! Your workaround is the way to do it, you can also use |
Closing since there's nothing we can do on our end about this. |
I am facing the same issue but i did not get a solution |
@saikrishnakalangi did you follow the syntax here? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue
There seems to be some terrible bugs on the current big number implementation, and it's breaking tests.
Steps to Reproduce
My case was during a test, but i can also do it using
truffle develop
with a simpler case:Seems to be some crazy internal error. Possible reference
Expected Behavior
Not an internal error
Environment
truffle version
): 5.0.12node --version
): v11.4.0npm --version
):The text was updated successfully, but these errors were encountered: