Flow price: --
c7ddc1dc7e4a2b53dbd61092a1bafe13e7e144da2c8a9baf8b548272ab58c931

Transaction

Hash: c7ddc1dc7e4a2b53dbd61092a1bafe13e7e144da2c8a9baf8b548272ab58c931
error
TOO_COMPLEX

This transaction is too complex it does too much logic or read/write to much data.

[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 0x321d8fcde05f6e8c.3713213: set value failed: [Error Code: 1110] computation exceeds limit (9999)
goroutine 5727540170 [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/onflow/cadence@v0.42.12/runtime/errors/errors.go:152
github.com/onflow/cadence/runtime/interpreter.asCadenceError({0x27fc500, 0x16aa28fd720})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:576 +0x212
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).RecoverErrors(0x17606ef68a0, 0x30472e8)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:528 +0x57
panic({0x27fc500, 0x16aa28fd720})
	/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0xbaf405?)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/stdlib/account.go:426 +0xc6
github.com/onflow/cadence/runtime/interpreter.NewPublicAccountValue.func1({0xc6c9c12f00?, 0xc073525410?}, 0xc6c9c12f00?, {{0x3388860?, 0x15fb31ec9e0?}, {0x3371ba0?, 0x17767793620?}})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/value_account.go:338 +0x2d5
github.com/onflow/cadence/runtime/interpreter.(*SimpleCompositeValue).GetMember(0x102172c54a0, 0x33a0cf0?, {{0x3388860?, 0x15fb31ec9e0?}, {0x3371ba0?, 0x17767793620?}}, {0xc6c9c12f00, 0xb})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/simplecompositevalue.go:143 +0xc7
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getMember(0x17606ef68a0?, {0x33a0cf0, 0x102172c54a0}, {{0x3388860?, 0x15fb31ec9e0?}, {0x3371ba0?, 0x17767793620?}}, {0xc6c9c12f00, 0xb})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:4902 +0xbd
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).memberExpressionGetterSetter.func1(0x0)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_expression.go:253 +0x235
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitMemberExpression(0x1?, 0x1?)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_expression.go:903 +0x37
github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x3397380?, 0x17767793620}, {0x33b0f80, 0x17606ef68a0})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/ast/visitor.go:248 +0x334
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_expression.go:341
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitBinaryExpression(0x17606ef68a0, 0xc06db1cf30)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_expression.go:346 +0x59
github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x3396e40?, 0xc06db1cf30}, {0x33b0f80, 0x17606ef68a0})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/ast/visitor.go:260 +0x458
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_expression.go:341
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithTestExpression(0xbab105?, {0x3396e40?, 0xc06db1cf30?}, 0x1ad7bcb?, 0x0)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_statement.go:126 +0x65
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x17606ef68a0?, 0x16135fff840)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_statement.go:113 +0xd8
github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x338eb00?, 0x16135fff840}, {0x33ab6e0, 0x17606ef68a0})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/ast/visitor.go:119 +0x335
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17606ef68a0, {0x338eb00?, 0x16135fff840})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_statement.go:58 +0x165
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc813fa?, {0x160b8b05e00?, 0x5, 0x17606ef68a0?})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_statement.go:64 +0x65
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2()
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_invocation.go:173 +0x2d
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x17606ef68a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc815bb?}, 0xc0c39f7858, {0x0, 0x0, ...}, ...)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:785 +0x18f
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0x17606ef68a0?, 0x2c3c0ab?, {0x0?, 0x33a0cf0?, 0x17606ef6c00?})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_invocation.go:169 +0x19f
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0x17606ef68a0, 0x153d1dcb780, {{{0x0, 0x0}, {0x0, 0x0}}, 0xc0e66ce3c0, 0x0, 0x0, 0x17606ef68a0, ...})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_invocation.go:148 +0x1d8
github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(...)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/value_function.go:126
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareTransactionEntryPoint.func1.1()
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_transaction.go:122 +0x79
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x17606ef68a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0xc0c39f7c70, {0x0, 0x0, ...}, ...)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:785 +0x18f
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareTransactionEntryPoint.func1({{{0x0, 0x0}, {0x0, 0x0}}, 0xc0e66ce3c0, 0x0, 0x0, 0x17606ef68a0, {0xc0221fc820, 0x2, ...}, ...})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter_transaction.go:134 +0x3a6
github.com/onflow/cadence/runtime/interpreter.(*HostFunctionValue).invoke(0x4?, {{{0x0, 0x0}, {0x0, 0x0}}, 0x0, 0x0, 0x0, 0x17606ef68a0, {0xc0221fc800, ...}, ...})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/value_function.go:256 +0x3a
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeExternally(0x1609b93f110?, {0x33a9b00, 0x16dcf901ed8}, 0x1609b93f180?, {0xc0221fc7c0?, 0x4?, 0x33b6010?})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:479 +0x2fd
github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeTransaction(0x17606ef68a0, 0xc0221fc7e0?, {0xc0221fc7c0, 0x4, 0x4})
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/interpreter/interpreter.go:521 +0x278
github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).transactionExecutionFunction.func1(0x17606ef68a0)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/transaction_executor.go:268 +0x2a8
github.com/onflow/cadence/runtime.(*interpreterEnvironment).Interpret.func1()
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/environment.go:1150 +0x9e
github.com/onflow/cadence/runtime.reportMetric(0xc0c39f8290, {0x7e038f4dc728?, 0xc17c27e6e0?}, 0xc0c39f8278)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/runtime.go:205 +0x65
github.com/onflow/cadence/runtime.(*interpreterEnvironment).Interpret(0x12c514b4a80, {0x3388860, 0x15fb31ec9e0}, 0xc0c39f8348?, 0x16dcf900030)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/environment.go:1144 +0x105
github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).execute(0x1672f38be60)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/transaction_executor.go:223 +0x19c
github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).Execute.func1()
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/transaction_executor.go:80 +0x25
sync.(*Once).doSlow(0x1312d00?, 0xc0c30b4760?)
	/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(0x1672f38be60?)
	/go/pkg/mod/github.com/onflow/cadence@v0.42.12/runtime/transaction_executor.go:79 +0x4a
github.com/onflow/flow-go/fvm/runtime.WrappedCadenceExecutor.Execute({{0x337ad90?, 0x1672f38be60?}})
	/app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27
github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x16602d94700)
	/app/fvm/transactionInvoker.go:374 +0x16c
github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x16602d94700)
	/app/fvm/transactionInvoker.go:270 +0x18d
github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x16602d94700?)
	/app/fvm/transactionInvoker.go:246 +0x25
github.com/onflow/flow-go/fvm.(*transactionExecutor).Execute(0x1618f309880?)
	/app/fvm/transactionInvoker.go:147 +0x1e
github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransactionInternal(_, {_, _}, _, {{{0xd4, 0xe1, 0x26, 0xc3, 0xea, 0x27, ...}, ...}, ...}, ...)
	/app/engine/execution/computation/computer/computer.go:531 +0x7b7
github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, {{{0xd4, 0xe1, 0x26, 0xc3, 0xea, 0x27, ...}, ...}, ...}, ...)
	/app/engine/execution/computation/computer/computer.go:458 +0x7e
github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransactions(0xc84d524820?, {0x33996d0, 0xc0005d69e0}, 0x942c40?, 0xc84d528c00?, 0x16507f53fb8?)
	/app/engine/execution/computation/computer/computer.go:432 +0x253
created by github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock
	/app/engine/execution/computation/computer/computer.go:388 +0xa65

  --> c7ddc1dc7e4a2b53dbd61092a1bafe13e7e144da2c8a9baf8b548272ab58c931:31:8
   |
31 |         if (updtRecipient.storageUsed > updtRecipient.storageCapacity) {
32 |               let flowPerByte = 0.001 / 100000.0 // 0.001 Flow per 100kb storage
33 | 
34 |               let storageUsed = UFix64(updtRecipient.storageUsed)
35 |               let storageCapacity = UFix64(updtRecipient.storageCapacity)
36 |               let flowAmount = ((storageUsed - storageCapacity) * flowPerByte) + 0.00001 // base of 1kb of storage
37 | 
38 |               let sentVault <- self.vault.withdraw(amount: flowAmount)
39 |               let updtRecipientFlowReceiver = updtRecipient.getCapability(/public/flowTokenReceiver).borrow<&{FungibleToken.Receiver}>()
40 |                   ?? panic("failed to borrow reference to updtRecipient vault")
41 |               updtRecipientFlowReceiver.deposit(from: <-sentVault)
42 |         }
   |         ^


Hash:
c7ddc1dc7e4a2b53dbd61092a1bafe13e7e144da2c8a9baf8b548272ab58c931
Status:
ERROR
Block height:
84974659
Block id:
d4e126c3ea27ca78eeb1f125dd4aafb4baef27f112678a8c2bc40980926f9466
Timestamp:
Tuesday 20 August 2024 at 21:44:18 UTC
()
Proposer:
Gas used:
9999