[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.657969: set value failed: [Error Code: 1110] computation exceeds limit (9999) goroutine 19826191736 [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(0x18167949200, 0x26b74a8) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:528 +0x14e panic({0x2032da0, 0x1819c779240}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0x1819bda4980?) /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({0x181679310a0?, 0x1819bda6ed0?}, 0x181679310a0?, {{0x29cc180?, 0x1814e497d20?}, {0x29b6e58?, 0x18167935aa0?}}) /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(0x1819bd9d740, 0x29e3e60?, {{0x29cc180?, 0x1814e497d20?}, {0x29b6e58?, 0x18167935aa0?}}, {0x181679310a0, 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(0x18167949200?, {0x29e3e60, 0x1819bd9d740}, {{0x29cc180?, 0x1814e497d20?}, {0x29b6e58?, 0x18167935aa0?}}, {0x181679310a0, 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(0x1816793c000?, 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?, 0x18167935aa0}, {0x29ef0a0, 0x18167949200}) /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(0x18167949200, 0x18167938900) /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?, 0x18167938900}, {0x29ef0a0, 0x18167949200}) /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(0x1818688c158?, {0x29daea0?, 0x18167938900?}, 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(0x1818688c1f8?, 0x1816792d5c0) /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?, 0x1816792d5c0}, {0x29ea420, 0x18167949200}) /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(0x18167949200, {0x29d4240?, 0x1816792d5c0}) /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?, {0x1816792a500?, 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(0x18167949200, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc1d565?}, 0x1818688c4b0, {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(0x18167949200?, 0x23a5e4a?, {0x0?, 0x29e3e60?, 0x18167949680?}) /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(0x18167949200, 0x18191942600, {{{0x0, 0x0}, {0x0, 0x0}}, 0x181919134f0, 0x0, 0x0, 0x18167949200, ...}) /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(0x18167949200, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0x1818688c8c8, {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}}, 0x181919134f0, 0x0, 0x0, 0x18167949200, {0x1819191b960, 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, 0x18167949200, {0x1819191b900, ...}, ...}) /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, 0x181679796f8}, 0x1816793cc40?, {0x180dc023c80?, 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(0x18167949200, 0x180dc023ce0?, {0x180dc023c80, 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(0x18167949200) /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(0x1818688cef8, {0x7f7a3ef54758?, 0x18190f71600?}, 0x1818688cee0) /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(0x183fef979e0, {0x29cc180, 0x1814e497d20}, 0x0?, 0x18167952fc0) /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(0x18167905440) /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?, 0x18167956510?) /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(0x18167905440?) /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?, 0x18167905440?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x17a523bcc00) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x17a523bcc00) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x17a523bcc00?) /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(_, {_, _}, _, _, {{{0xf1, 0xbd, 0xa, 0x7, 0xa7, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:435 +0x942 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, _, {{{0xf1, 0xbd, 0xa, 0x7, 0xa7, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:365 +0x68 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock(0xc0002d4d80, {0x29c47c8, 0x1305927e200}, {0xe9, 0x17, 0xc5, 0x48, 0x5, 0x75, 0x99, ...}, ...) /app/engine/execution/computation/computer/computer.go:335 +0xae5 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).ExecuteBlock(0x231f5da02bd1d2bb?, {0x29c47c8?, 0x1305927e200?}, {0xe9, 0x17, 0xc5, 0x48, 0x5, 0x75, 0x99, ...}, ...) /app/engine/execution/computation/computer/computer.go:176 +0x53 github.com/onflow/flow-go/engine/execution/computation.(*Manager).ComputeBlock(0xc60ceda140, {0x29c47c8, 0x1305927e200}, {0xe9, 0x17, 0xc5, 0x48, 0x5, 0x75, 0x99, ...}, ...) /app/engine/execution/computation/manager.go:190 +0x1e3 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlock(0x13057609500, {0x29c47c8, 0x1305927e200}, 0x1817e917f80) /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 --> 52d072bd5cfefee7f5ab673152c7d337d379e66d455d7a7885d131cdeba2d22a: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 | } | ^