Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 8a86568934fad7e613cfae2ba31d4267879932e95e7a5f75276c5d9371a60270:16:8
|
16 | self.stakingCollectionRef.registerDelegator(nodeID: id, amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 8d0e87b65159ae63.FlowStakingCollection:571:33
|
571 | let nodeDelegator <- FlowIDTableStaking.registerNewDelegator(nodeID: nodeID, tokensCommitted: <-tokens)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: Cannot register a delegator if the node operator is below the minimum stake
--> 8624b52f9ddcd04a.FlowIDTableStaking:1588:8
|
1588 | assert (
1589 | FlowIDTableStaking.isGreaterThanMinimumForRole(numTokens: nodeRecord.nodeFullCommittedBalance(), role: nodeRecord.role),
1590 | message: "Cannot register a delegator if the node operator is below the minimum stake"
1591 | )
| ^