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.586107: set value failed: [Error Code: 1110] computation exceeds limit (9999) goroutine 19692555688 [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(0x137d8ba48a0, 0x26b74a8) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:528 +0x14e panic({0x2032da0, 0x13dda08ffa0}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0x13dd93dec10?) /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({0x14342b30fa0?, 0x13dd93e15c0?}, 0x14342b30fa0?, {{0x29cc180?, 0xf345cb9380?}, {0x29b6e58?, 0x12b293cf0e0?}}) /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(0x11611ef1800, 0x29e3e60?, {{0x29cc180?, 0xf345cb9380?}, {0x29b6e58?, 0x12b293cf0e0?}}, {0x14342b30fa0, 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(0x137d8ba48a0?, {0x29e3e60, 0x11611ef1800}, {{0x29cc180?, 0xf345cb9380?}, {0x29b6e58?, 0x12b293cf0e0?}}, {0x14342b30fa0, 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(0x13dcca95f10?, 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?, 0x12b293cf0e0}, {0x29ef0a0, 0x137d8ba48a0}) /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(0x137d8ba48a0, 0x13dcca9da70) /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?, 0x13dcca9da70}, {0x29ef0a0, 0x137d8ba48a0}) /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(0x13ccf798158?, {0x29daea0?, 0x13dcca9da70?}, 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(0x13ccf7981f8?, 0x13dcca99640) /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?, 0x13dcca99640}, {0x29ea420, 0x137d8ba48a0}) /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(0x137d8ba48a0, {0x29d4240?, 0x13dcca99640}) /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?, {0x13dcca87780?, 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(0x137d8ba48a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc1d565?}, 0x13ccf7984b0, {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(0x137d8ba48a0?, 0x23a5e4a?, {0x0?, 0x29e3e60?, 0x137d8ba54a0?}) /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(0x137d8ba48a0, 0x13dcf221880, {{{0x0, 0x0}, {0x0, 0x0}}, 0x13dcf222ed0, 0x0, 0x0, 0x137d8ba48a0, ...}) /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(0x137d8ba48a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0x13ccf7988c8, {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}}, 0x13dcf222ed0, 0x0, 0x0, 0x137d8ba48a0, {0x13dcf220be0, 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, 0x137d8ba48a0, {0x13dcf220b80, ...}, ...}) /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, 0x13dccae97b8}, 0x13dccaa2b60?, {0x13dcabb0c00?, 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(0x137d8ba48a0, 0x13dcabb0c60?, {0x13dcabb0c00, 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(0x137d8ba48a0) /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(0x13ccf798ef8, {0x7f1d50a3f1f8?, 0xc275aa78c0?}, 0x13ccf798ee0) /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(0x138ac911830, {0x29cc180, 0xf345cb9380}, 0x0?, 0x13dccab3080) /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(0x13dcabede60) /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?, 0x13dccaa9ef0?) /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(0x13dcabede60?) /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?, 0x13dcabede60?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x139919df500) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x139919df500) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x139919df500?) /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(_, {_, _}, _, _, {{{0xe1, 0x7c, 0xf4, 0x2d, 0xe3, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:435 +0x942 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, _, {{{0xe1, 0x7c, 0xf4, 0x2d, 0xe3, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:365 +0x68 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock(0xc00057cd80, {0x29c47c8, 0x13061794780}, {0xb8, 0x35, 0x46, 0x49, 0x26, 0x1c, 0xdd, ...}, ...) /app/engine/execution/computation/computer/computer.go:335 +0xae5 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).ExecuteBlock(0x39ba5648c0cf7a95?, {0x29c47c8?, 0x13061794780?}, {0xb8, 0x35, 0x46, 0x49, 0x26, 0x1c, 0xdd, ...}, ...) /app/engine/execution/computation/computer/computer.go:176 +0x53 github.com/onflow/flow-go/engine/execution/computation.(*Manager).ComputeBlock(0xc44d015720, {0x29c47c8, 0x13061794780}, {0xb8, 0x35, 0x46, 0x49, 0x26, 0x1c, 0xdd, ...}, ...) /app/engine/execution/computation/manager.go:190 +0x1e3 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlock(0x13061792480, {0x29c47c8, 0x13061794780}, 0x13dc0391600) /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 --> 1500c1e6a4f39917218a4fcbdb528d8b97156bbd3f2a3c959a9d3781874f6ec0: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:
[6399134,6399135,639...171,6399172,6399173]
customIDs:
["DzvRWUcmIIeeYpLZ2E...WMUB7zQUpzSdaaulzY"]
saleItemPriceDUC:
4.99
saleItemPriceFUT:
7.99
expiry:
1688529600
relist: