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 0x6320abf93dc53317.661354: 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(0x1487e0a6ea0, 0x26b74a8) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:528 +0x14e panic({0x2032da0, 0x14884cb8980}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0x1488419d370?) /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({0x147c6b7b960?, 0x148841adce0?}, 0x147c6b7b960?, {{0x29cc180?, 0x147c6b34380?}, {0x29b6e58?, 0x147c6b7d6e0?}}) /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(0x148841a13e0, 0x29e3e60?, {{0x29cc180?, 0x147c6b34380?}, {0x29b6e58?, 0x147c6b7d6e0?}}, {0x147c6b7b960, 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(0x1487e0a6ea0?, {0x29e3e60, 0x148841a13e0}, {{0x29cc180?, 0x147c6b34380?}, {0x29b6e58?, 0x147c6b7d6e0?}}, {0x147c6b7b960, 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(0x147c6b61ea0?, 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?, 0x147c6b7d6e0}, {0x29ef0a0, 0x1487e0a6ea0}) /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(0x1487e0a6ea0, 0x147c6b7fec0) /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?, 0x147c6b7fec0}, {0x29ef0a0, 0x1487e0a6ea0}) /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?, 0x147c6b7fec0?}, 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?, 0x1487e0827c0) /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?, 0x1487e0827c0}, {0x29ea420, 0x1487e0a6ea0}) /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(0x1487e0a6ea0, {0x29d4240?, 0x1487e0827c0}) /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?, {0x147c6b4ff00?, 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(0x1487e0a6ea0, {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(0x1487e0a6ea0?, 0x23a5e4a?, {0x0?, 0x29e3e60?, 0x1487e0a7320?}) /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(0x1487e0a6ea0, 0x1487e226000, {{{0x0, 0x0}, {0x0, 0x0}}, 0x1487e0c7ed0, 0x0, 0x0, 0x1487e0a6ea0, ...}) /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(0x1487e0a6ea0, {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}}, 0x1487e0c7ed0, 0x0, 0x0, 0x1487e0a6ea0, {0x1487e0ef360, 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, 0x1487e0a6ea0, {0x1487e0ef300, ...}, ...}) /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, 0x1487e0cf410}, 0x1487e086af0?, {0x147c6b203c0?, 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(0x1487e0a6ea0, 0x147c6b20420?, {0x147c6b203c0, 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(0x1487e0a6ea0) /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?, 0x1487d95c840?}, 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(0x13ddbbb2090, {0x29cc180, 0x147c6b34380}, 0x0?, 0x1487e0a4cd8) /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(0x147c6b41320) /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?, 0x1487e0a2ef0?) /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(0x147c6b41320?) /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?, 0x147c6b41320?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x1450eb09b00) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x1450eb09b00) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x1450eb09b00?) /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 --> 2300bc0bd196872d206d4b8a00565b5c72f08b2f5e75641944167aff527e8641: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 | } | ^
Arguments:
saleItemIDs:
[6385894,6385895,638...931,6385932,6385933]
customIDs:
["DzvRWUcmIIeeYpLZ2E...prau06nAI2sm933d1R"]
saleItemPriceDUC:
4.99
saleItemPriceFUT:
7.99
expiry:
1688529600
relist: