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.577407: set value failed: [Error Code: 1110] computation exceeds limit (9999) goroutine 16292762417 [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(0x14535137440, 0x26b74a8) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.9-patch.1/runtime/interpreter/interpreter.go:528 +0x14e panic({0x2032da0, 0x14a95370be0}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime/stdlib.newStorageUsedGetFunction.func1(0x14fc9111790?) /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({0x146b3360860?, 0x1391f37f590?}, 0x146b3360860?, {{0x29cc180?, 0x1480839c740?}, {0x29b6e58?, 0xc08d78ec60?}}) /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(0xc0a3c876e0, 0x29e3e60?, {{0x29cc180?, 0x1480839c740?}, {0x29b6e58?, 0xc08d78ec60?}}, {0x146b3360860, 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(0x14535137440?, {0x29e3e60, 0xc0a3c876e0}, {{0x29cc180?, 0x1480839c740?}, {0x29b6e58?, 0xc08d78ec60?}}, {0x146b3360860, 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(0x1678d050000?, 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?, 0xc08d78ec60}, {0x29ef0a0, 0x14535137440}) /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(0x14535137440, 0xc2f598c810) /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?, 0xc2f598c810}, {0x29ef0a0, 0x14535137440}) /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(0xc086d28158?, {0x29daea0?, 0xc2f598c810?}, 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(0xc086d281f8?, 0x147a329ca80) /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?, 0x147a329ca80}, {0x29ea420, 0x14535137440}) /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(0x14535137440, {0x29d4240?, 0x147a329ca80}) /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?, {0x137c04b6480?, 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(0x14535137440, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc1d565?}, 0xc086d284b0, {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(0x14535137440?, 0x23a5e4a?, {0x0?, 0x29e3e60?, 0xc08d792000?}) /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(0x14535137440, 0x139209c8580, {{{0x0, 0x0}, {0x0, 0x0}}, 0x14d82fe7c90, 0x0, 0x0, 0x14535137440, ...}) /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(0x14535137440, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0xc086d288c8, {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}}, 0x14d82fe7c90, 0x0, 0x0, 0x14535137440, {0x133d509d8e0, 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, 0x14535137440, {0x133d509d880, ...}, ...}) /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, 0x149abc26468}, 0x1678d050c40?, {0x148bb244300?, 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(0x14535137440, 0x148bb244360?, {0x148bb244300, 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(0x14535137440) /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(0xc086d28ef8, {0x7f2b0adc9600?, 0x144e27b62c0?}, 0xc086d28ee0) /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(0x151b4b830e0, {0x29cc180, 0x1480839c740}, 0x0?, 0x1498f345d28) /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(0x139c61665a0) /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?, 0x14d7e3f8cb0?) /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(0x139c61665a0?) /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?, 0x139c61665a0?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x145e35f0000) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x145e35f0000) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x145e35f0000?) /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(_, {_, _}, _, _, {{{0x7f, 0x60, 0xa2, 0x64, 0x62, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:435 +0x942 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, _, {{{0x7f, 0x60, 0xa2, 0x64, 0x62, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:365 +0x68 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock(0x1315115b680, {0x29c47c8, 0x10045544880}, {0x17, 0xed, 0x39, 0x62, 0x79, 0xed, 0xa, ...}, ...) /app/engine/execution/computation/computer/computer.go:335 +0xae5 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).ExecuteBlock(0x82f30f8e7c22456d?, {0x29c47c8?, 0x10045544880?}, {0x17, 0xed, 0x39, 0x62, 0x79, 0xed, 0xa, ...}, ...) /app/engine/execution/computation/computer/computer.go:176 +0x53 github.com/onflow/flow-go/engine/execution/computation.(*Manager).ComputeBlock(0x13151e24280, {0x29c47c8, 0x10045544880}, {0x17, 0xed, 0x39, 0x62, 0x79, 0xed, 0xa, ...}, ...) /app/engine/execution/computation/manager.go:190 +0x1e3 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlock(0x1316078a000, {0x29c47c8, 0x10045544880}, 0x17f460d1900) /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 --> 7c5e243deab18fd12f7f9b47b997a0babb1c3e2052b9d825718538ff1487077b: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:
[6375354,6375355,637...391,6375392,6375393]
customIDs:
["DzvRWUcmIIeeYpLZ2E...tRUaI3n3vKYDnBTafg"]
saleItemPriceDUC:
4.99
saleItemPriceFUT:
7.99
expiry:
1688529600
relist: