Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 1e3f0299642904c390fb017b44356ce200a9c39ceb34282329a221585843fdae: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."))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^