Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> c846c1519f41bdd8172e74bfe0e19e52f203c4e5b49642245dfc32d19ca62c2c:19:8
|
19 | self.stakingCollectionRef.registerDelegator(nodeID: id, amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: panic: FlowStakingCollection.StakingCollection.registerDelegator: Cannot register a delegator for node 6c6af0933b710655ec553f4bead3b01c5e0a3ffd1194ee536efb926b356c54aa because that node is already being delegated to from this Staking Collection.
--> 8d0e87b65159ae63.FlowStakingCollection:697:20
|
697 | panic("FlowStakingCollection.StakingCollection.registerDelegator: "
698 | .concat("Cannot register a delegator for node ").concat(nodeID)
699 | .concat(" because that node is already being delegated to from this Staking Collection."))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^