You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In pox-4, if you call delegate-stack-increase when not delegated, instead of returning a nice error, the transaction will hit a runtime arithmetic underflow. We should add an assertion to check for this case and report a nice error before reaching this subtraction.
In pox-4, if you call
delegate-stack-increase
when not delegated, instead of returning a nice error, the transaction will hit a runtime arithmetic underflow. We should add an assertion to check for this case and report a nice error before reaching this subtraction.Example test case can be found here:
stacks-core/contrib/boot-contracts-unit-tests/tests/pool-delegate.test.ts
Lines 1032 to 1048 in c9cec42
The beginning of this function is:
The problem arises from the fact that the
unlock-height
binding is going to be0
. See comments above to follow how the underflow is reached.The right solution is probably just to add:
The text was updated successfully, but these errors were encountered: