[Error Code: 1110] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: internal error: failed to store slab 0x6320abf93dc53317.661289: set value failed: [Error Code: 1110] computation exceeds limit (9999) goroutine 13755910 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 github.com/onflow/cadence/runtime/errors.NewUnexpectedErrorFromCause(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/errors/errors.go:152 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).RecoverErrors(0x148885aac00, 0x26b74a8) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:528 +0x14e panic({0x2032da0, 0x1488d0f7980}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0x1488c9c6eb0?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/stdlib/account.go:405 +0xc6 github.com/onflow/cadence/runtime/interpreter.NewPublicAccountValue.func1({0x14887e7afd0?, 0x1488c9d8030?}, 0x14887e7afd0?, {{0x29cc180?, 0x14885c4fa40?}, {0x29b6e58?, 0x14887e7f440?}}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/value_account.go:338 +0x2d5 github.com/onflow/cadence/runtime/interpreter.(*SimpleCompositeValue).GetMember(0x1488c9c15c0, 0x29e3e60?, {{0x29cc180?, 0x14885c4fa40?}, {0x29b6e58?, 0x14887e7f440?}}, {0x14887e7afd0, 0xb}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/simplecompositevalue.go:119 +0xc7 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getMember(0x148885aac00?, {0x29e3e60, 0x1488c9c15c0}, {{0x29cc180?, 0x14885c4fa40?}, {0x29b6e58?, 0x14887e7f440?}}, {0x14887e7afd0, 0xb}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:4837 +0xbd github.com/onflow/cadence/runtime/interpreter.(*Interpreter).memberExpressionGetterSetter.func1(0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_expression.go:197 +0x252 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitMemberExpression(0x14887e6dea0?, 0x0?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_expression.go:835 +0x26 github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x29db3e0?, 0x14887e7f440}, {0x29ef0a0, 0x148885aac00}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/ast/visitor.go:248 +0x2e2 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_expression.go:279 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitBinaryExpression(0x148885aac00, 0x14888582d80) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_expression.go:284 +0x59 github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x29daea0?, 0x14888582d80}, {0x29ef0a0, 0x148885aac00}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/ast/visitor.go:260 +0x3ed github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_expression.go:279 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithTestExpression(0x1487c2de158?, {0x29daea0?, 0x14888582d80?}, 0x0?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_statement.go:125 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x1487c2de1f8?, 0x14887e75900) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_statement.go:112 +0xd6 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x29d4240?, 0x14887e75900}, {0x29ea420, 0x148885aac00}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/ast/visitor.go:119 +0x2d7 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x148885aac00, {0x29d4240?, 0x14887e75900}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_statement.go:57 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc21b9a?, {0x14887e76c00?, 0x5, 0xd0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_statement.go:63 +0x68 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_invocation.go:172 +0x2d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x148885aac00, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc1d565?}, 0x1487c2de4b0, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:766 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0x148885aac00?, 0x23a5e4a?, {0x0?, 0x29e3e60?, 0x148885ab080?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_invocation.go:168 +0x19f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0x148885aac00, 0x14888782d00, {{{0x0, 0x0}, {0x0, 0x0}}, 0x148885eeb20, 0x0, 0x0, 0x148885aac00, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_invocation.go:147 +0x1df github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/value_function.go:126 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareTransactionEntryPoint.func1.1() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_transaction.go:122 +0x79 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x148885aac00, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0x1487c2de8c8, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:766 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareTransactionEntryPoint.func1({{{0x0, 0x0}, {0x0, 0x0}}, 0x148885eeb20, 0x0, 0x0, 0x148885aac00, {0x14888782060, 0x2, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter_transaction.go:134 +0x3a6 github.com/onflow/cadence/runtime/interpreter.(*HostFunctionValue).invoke(0x8?, {{{0x0, 0x0}, {0x0, 0x0}}, 0x0, 0x0, 0x0, 0x148885aac00, {0x14888782000, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/value_function.go:255 +0x3a github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeExternally(0x223f9c0?, {0x29e8c48, 0x148885e24c8}, 0x14888586af0?, {0x14870a26f00?, 0x8?, 0x0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:470 +0x21d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeTransaction(0x148885aac00, 0x14870a26f60?, {0x14870a26f00, 0x8, 0xc}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:512 +0x2b6 github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).transactionExecutionFunction.func1(0x148885aac00) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/transaction_executor.go:268 +0x35f github.com/onflow/cadence/runtime.(*interpreterEnvironment).Interpret.func1() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/environment.go:1003 +0x9e github.com/onflow/cadence/runtime.reportMetric(0x1487c2deef8, {0x7ecfa8b0d468?, 0x148874c9b80?}, 0x1487c2deee0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/runtime.go:205 +0x65 github.com/onflow/cadence/runtime.(*interpreterEnvironment).Interpret(0x13674522870, {0x29cc180, 0x14885c4fa40}, 0x0?, 0x14887e73d88) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/environment.go:997 +0x105 github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).execute(0x14887e4e480) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/transaction_executor.go:223 +0x19c github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).Execute.func1() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/transaction_executor.go:80 +0x25 sync.(*Once).doSlow(0x1312d00?, 0x14888595b40?) /usr/local/go/src/sync/once.go:74 +0xc2 sync.(*Once).Do(...) /usr/local/go/src/sync/once.go:65 github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).Execute(0x14887e4e480?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/transaction_executor.go:79 +0x4a github.com/onflow/flow-go/fvm/runtime.WrappedCadenceExecutor.Execute({{0x29bf800?, 0x14887e4e480?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x1487d04ec00) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x1487d04ec00) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x1487d04ec00?) /app/fvm/transactionInvoker.go:223 +0x25 github.com/onflow/flow-go/fvm.(*transactionExecutor).Execute(0x0?) /app/fvm/transactionInvoker.go:140 +0x1e github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransactionInternal(_, {_, _}, _, _, {{{0xda, 0x91, 0xf1, 0x2, 0xe8, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:435 +0x942 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, _, {{{0xda, 0x91, 0xf1, 0x2, 0xe8, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:365 +0x68 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock(0xc0c80aa000, {0x29c47c8, 0xc0cb032d40}, {0xe1, 0xcd, 0x4e, 0x75, 0x38, 0x55, 0x2e, ...}, ...) /app/engine/execution/computation/computer/computer.go:335 +0xae5 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).ExecuteBlock(0x31898dc1c89f2e09?, {0x29c47c8?, 0xc0cb032d40?}, {0xe1, 0xcd, 0x4e, 0x75, 0x38, 0x55, 0x2e, ...}, ...) /app/engine/execution/computation/computer/computer.go:176 +0x53 github.com/onflow/flow-go/engine/execution/computation.(*Manager).ComputeBlock(0x117dac54000, {0x29c47c8, 0xc0cb032d40}, {0xe1, 0xcd, 0x4e, 0x75, 0x38, 0x55, 0x2e, ...}, ...) /app/engine/execution/computation/manager.go:190 +0x1e3 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlock(0xc0ca326780, {0x29c47c8, 0xc0cb032d40}, 0x14866c94ec0) /app/engine/execution/ingestion/engine.go:623 +0x677 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlockIfComplete.func1() /app/engine/execution/ingestion/engine.go:838 +0x2c github.com/onflow/flow-go/engine.(*Unit).Launch.func1() /app/engine/unit.go:74 +0x62 created by github.com/onflow/flow-go/engine.(*Unit).Launch /app/engine/unit.go:72 +0x7f --> ec042c2fba923a90bc3ec962ec17a38a97d189dfa32347e7098465fccf7279db:139:6 | 139 | if (recipient.storageUsed > recipient.storageCapacity) { 140 | let flowPerByte = 0.001 / 100000.0 // 0.001 Flow per 100kb storage 141 | 142 | let storageUsed = UFix64(recipient.storageUsed) 143 | let storageCapacity = UFix64(recipient.storageCapacity) 144 | let flowAmount = (storageUsed - storageCapacity) * flowPerByte 145 | 146 | let sentVault <- self.vault.withdraw(amount: flowAmount) 147 | let recipientFlowReceiver = recipient.getCapability(/public/flowTokenReceiver).borrow<&{FungibleToken.Receiver}>() 148 | ?? panic("failed to borrow reference to recipient vault") 149 | recipientFlowReceiver.deposit(from: <-sentVault) 150 | } | ^