Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 9eda80d0e53d29ba7f026b51b07974a321eb76bc8f71f519c9131441bbc93d99:20:32
|
20 | if let machineAccount = self.stakingCollectionRef.registerNode(
21 | id: id,
22 | role: role,
23 | networkingAddress: networkingAddress,
24 | networkingKey: networkingKey,
25 | stakingKey: stakingKey,
26 | amount: amount,
27 | payer: account)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 95e019a17d0e23d7.FlowStakingCollection:401:30
|
401 | let nodeStaker <- FlowIDTableStaking.addNodeRecord(id: id, role: role, networkingAddress: networkingAddress, networkingKey: networkingKey, stakingKey: stakingKey, tokensCommitted: <-tokens)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: Tokens committed for registration is not above the minimum (250000.00000000) for the chosen node role (2)
--> 9eca2b38b18b5dfe.FlowIDTableStaking:1552:8
|
1552 | assert(
1553 | self.isGreaterThanMinimumForRole(numTokens: tokensCommitted.balance, role: role),
1554 | message: "Tokens committed for registration is not above the minimum (".concat(minimum.toString()).concat(") for the chosen node role (".concat(role.toString()).concat(")"))
1555 | )
| ^