Skip to content

fix: callhash from event#57

Open
cuteWarmFrog wants to merge 11 commits intomainfrom
fix/operation-callhash
Open

fix: callhash from event#57
cuteWarmFrog wants to merge 11 commits intomainfrom
fix/operation-callhash

Conversation

@cuteWarmFrog
Copy link
Copy Markdown
Contributor

No description provided.

@cuteWarmFrog cuteWarmFrog self-assigned this Aug 28, 2025
Comment thread src/utils/operations.ts
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/utils/operations.ts
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment on lines +30 to +36
.on("utility", ["batch", "batchAll", "forceBatch"], (extrinsic, context) => {
const calls = extrinsic.call.args.at(0);
if (Array.isArray(calls) && calls.length > 100) {
// we're skipping large batches, something terrible happens inside anyway
context.stop();
}
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether this can be extracted to some common function somehow since it becomes the common practice - it is used twice here and I also saw Stepan uses the same in his pr. Something like CreateCallVisitorBuilder.stopOnLargeBatches() would be ideal but i am not sure whether ts allows that

Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts
Comment thread src/mappings/handlers/multisigEventHandler.ts
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts Outdated
Comment thread src/mappings/handlers/multisigEventHandler.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants