Skip to content

Error: bigNumberify out of range when subtracting UInt #1347

Discussion options

You must be logged in to vote

What you are experiencing is that arithmetic operations are treated as pure and ?: is not lazy on pure operations. The documentation explains this --- https://docs.reach.sh/rsh/compute/#conditional-expression

We consider this to be too confusing and this will be changed in the next release. However, you can adapt today by changing to an if (.....) { .... } else { .... }

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lorenzopolidori
Comment options

@jeapostrophe
Comment options

@jeapostrophe
Comment options

@lorenzopolidori
Comment options

Answer selected by jeapostrophe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants