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: [Error Code: 1110] computation exceeds limit (9999) goroutine 35541693733 [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.12-patch.1/runtime/errors/errors.go:152 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).RecoverErrors(0xf22f4514a0, 0x26bab98) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:531 +0x14e panic({0x21f7a40, 0x135d9bf3578}) /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/onflow/cadence/runtime.(*interpreterEnvironment).newOnMeterComputation.func1(0xb5c580?, 0x29a17a0?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/environment.go:944 +0x8e github.com/onflow/cadence/runtime/interpreter.(*Interpreter).reportLoopIteration(0xf22f4514a0, {0x29bad60, 0xc4a8562cc0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:4788 +0x56 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitWhileStatement(0x135c0bddbe0?, 0xc4a8562cc0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:285 +0x89 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x29d80d0?, 0xc4a8562cc0}, {0x29edfe0, 0xf22f4514a0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/ast/visitor.go:128 +0x35d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0xf22f4514a0, {0x29d80d0?, 0xc4a8562cc0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:57 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x204d70?, {0x135be8f2180?, 0x3, 0xd44327d2d625eb52?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:63 +0x68 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0xf22f4514a0, 0x135be8bb7c0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:744 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithTestExpression(0x135c0bdde48?, {0x29dea60?, 0xc4a8562ab0?}, 0x1?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:131 +0xce github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x135c0bddee8?, 0x135be8f21c0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:112 +0xd6 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x29d7e00?, 0x135be8f21c0}, {0x29edfe0, 0xf22f4514a0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/ast/visitor.go:119 +0x2d7 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0xf22f4514a0, {0x29d7e00?, 0x135be8f21c0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:57 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x1086120?, {0x135be889df0?, 0x1, 0x1?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:63 +0x68 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0xf22f4514a0, 0x135be8bb810) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:744 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitForStatement(0xf22f4514a0, 0x135fc0a7740) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:354 +0x2ef github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x29d7d60?, 0x135fc0a7740}, {0x29edfe0, 0xf22f4514a0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/ast/visitor.go:122 +0x39d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0xf22f4514a0, {0x29d7d60?, 0x135fc0a7740}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_statement.go:57 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc229ba?, {0x135bd717c00?, 0x9, 0xd0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-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.12-patch.1/runtime/interpreter/interpreter_invocation.go:173 +0x2d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0xf22f4514a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc1e385?}, 0x135c0bde4a8, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:769 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0xf22f4514a0?, 0x23a9428?, {0x0?, 0x29e7a20?, 0xf9805129c0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_invocation.go:169 +0x19f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0xf22f4514a0, 0x135c0b35700, {{{0x0, 0x0}, {0x0, 0x0}}, 0x135c0b01460, 0x0, 0x0, 0xf22f4514a0, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_invocation.go:148 +0x1df github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-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.12-patch.1/runtime/interpreter/interpreter_transaction.go:122 +0x79 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0xf22f4514a0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0?}, 0x135c0bde8c0, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:769 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareTransactionEntryPoint.func1({{{0x0, 0x0}, {0x0, 0x0}}, 0x135c0b01460, 0x0, 0x0, 0xf22f4514a0, {0x135be8f39b0, 0x1, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter_transaction.go:134 +0x3a6 github.com/onflow/cadence/runtime/interpreter.(*HostFunctionValue).invoke(0x4?, {{{0x0, 0x0}, {0x0, 0x0}}, 0x0, 0x0, 0x0, 0xf22f4514a0, {0x135be8f3980, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/value_function.go:256 +0x3a github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeExternally(0x2242f40?, {0x29ec808, 0x135c0b1f050}, 0x135be8f2380?, {0xf980512d20?, 0x4?, 0x0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:473 +0x2bd github.com/onflow/cadence/runtime/interpreter.(*Interpreter).InvokeTransaction(0xf22f4514a0, 0xf980512d50?, {0xf980512d20, 0x4, 0x6}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/interpreter/interpreter.go:515 +0x2b6 github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).transactionExecutionFunction.func1(0xf22f4514a0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-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.12-patch.1/runtime/environment.go:1003 +0x9e github.com/onflow/cadence/runtime.reportMetric(0x135c0bdeef8, {0x7ba61faca780?, 0x1421af56580?}, 0x135c0bdeee0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/runtime.go:205 +0x65 github.com/onflow/cadence/runtime.(*interpreterEnvironment).Interpret(0x14aedaa2b40, {0x29cfd40, 0x1761d20a2a0}, 0x0?, 0x135be8fe5d0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/environment.go:997 +0x105 github.com/onflow/cadence/runtime.(*interpreterTransactionExecutor).execute(0x135bd77aa20) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-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.12-patch.1/runtime/transaction_executor.go:80 +0x25 sync.(*Once).doSlow(0x1312d00?, 0x135be8f9050?) /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(0x135bd77aa20?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.39.12-patch.1/runtime/transaction_executor.go:79 +0x4a github.com/onflow/flow-go/fvm/runtime.WrappedCadenceExecutor.Execute({{0x29c33c0?, 0x135bd77aa20?}}) /app/fvm/runtime/wrapped_cadence_runtime.go:90 +0x27 github.com/onflow/flow-go/fvm.(*transactionExecutor).normalExecution(0x1b37a138300) /app/fvm/transactionInvoker.go:334 +0x16c github.com/onflow/flow-go/fvm.(*transactionExecutor).ExecuteTransactionBody(0x1b37a138300) /app/fvm/transactionInvoker.go:231 +0x45 github.com/onflow/flow-go/fvm.(*transactionExecutor).execute(0x1b37a138300?) /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(_, {_, _}, _, _, {{{0x1f, 0x2a, 0x7f, 0x2, 0x19, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:435 +0x942 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeTransaction(_, {_, _}, _, _, {{{0x1f, 0x2a, 0x7f, 0x2, 0x19, ...}, ...}, ...}) /app/engine/execution/computation/computer/computer.go:365 +0x68 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock(0xc108f71680, {0x29c8388, 0xc1a52cb580}, {0xc0, 0xbe, 0xa7, 0x69, 0x53, 0x50, 0x59, ...}, ...) /app/engine/execution/computation/computer/computer.go:335 +0xae5 github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).ExecuteBlock(0x31588f3b222eb9cd?, {0x29c8388?, 0xc1a52cb580?}, {0xc0, 0xbe, 0xa7, 0x69, 0x53, 0x50, 0x59, ...}, ...) /app/engine/execution/computation/computer/computer.go:176 +0x53 github.com/onflow/flow-go/engine/execution/computation.(*Manager).ComputeBlock(0x1340e7e1220, {0x29c8388, 0xc1a52cb580}, {0xc0, 0xbe, 0xa7, 0x69, 0x53, 0x50, 0x59, ...}, ...) /app/engine/execution/computation/manager.go:190 +0x1e3 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlock(0xc1a52cc340, {0x29c8388, 0xc1a52cb580}, 0x135ba3e2f00) /app/engine/execution/ingestion/engine.go:634 +0x677 github.com/onflow/flow-go/engine/execution/ingestion.(*Engine).executeBlockIfComplete.func1() /app/engine/execution/ingestion/engine.go:849 +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 --> 9177e95c89a63be44442f48312051ff77845ae3aa3a2d1002e1a56a58354c27d:52:10 | 52 | if nftMetadata.purchasers[serial] == nil { 53 | chosenSerial = serial 54 | break 55 | } | ^
Arguments:
price:
1
contractName:
TouchstoneOdysseyoftheCryptoPharaohs
contractAddress:
0x7dc1aa82a2f8d409