Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> ce152b2fac26c061b1875f31749469baa516745dd9bb4b5c4de2e6a1f91b6d0d:15:8
|
15 | self.stakingCollectionRef.requestUnstaking(nodeID: nodeID, delegatorID: delegatorID, amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 8d0e87b65159ae63.FlowStakingCollection:720:20
|
720 | delegator.requestUnstaking(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: Not enough tokens to unstake!
--> 8624b52f9ddcd04a.FlowIDTableStaking:731:12
|
731 | assert (
732 | delRecord.tokensStaked.balance +
733 | delRecord.tokensCommitted.balance
734 | >= amount + delRecord.tokensRequestedToUnstake,
735 | message: "Not enough tokens to unstake!"
736 | )
| ^