Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> db297c3e67ef920f9e83118f8c8b1cff1b3f50246d849255bbdc5d8c417f94ba:21:32
|
21 | if let machineAccount = self.stakingCollectionRef.registerNode(
22 | id: id,
23 | role: role,
24 | networkingAddress: networkingAddress,
25 | networkingKey: networkingKey,
26 | stakingKey: stakingKey,
27 | amount: amount,
28 | payer: account)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 95e019a17d0e23d7.FlowStakingCollection:399:26
|
399 | let tokens <- self.getTokens(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: Insufficient total Flow balance
--> 95e019a17d0e23d7.FlowStakingCollection:222:16
|
222 | assert(
223 | amount <= unlockedBalance,
224 | message: "Insufficient total Flow balance"
225 | )
| ^