Menu

πŸ“°
0

Decoding Error 1010: What 'Invalid Transaction' Actually Means on Midnight

DEV Community: tutorialΒ·ToshΒ·about 1 month ago
#6cgYbjt9
#dev#class#code#error#transaction#article
Reading 0:00
15s threshold

Decoding Error 1010: What 'Invalid Transaction' Actually Means You've deployed to Midnight testnet. The circuit compiles. The TypeScript driver looks right. And then: InvalidTransaction . No stack trace. No line number. Just the number 1010 staring back at you. I spent four hours debugging this the first time. The fix took two lines of code. Here's what I learned. Error 1010 on Midnight Network is the kind of thing that stops you cold. You've built the circuit, written the TypeScript driver, deployed to testnet β€” and then: InvalidTransaction . No stack trace. No obvious cause. Just a number. Here's what's actually happening. It Isn't Midnight's Error This trips people up because they go digging in Midnight-specific docs first. Error 1010 isn't a custom Midnight error code. It's Substrate's InvalidTransaction::ExhaustsResources β€” code 10 β€” surfaced through the POOL_INVALID_TX mechanism after Midnight's own validation layer rejects the transaction.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More