Skip to content

Conversation

@mbjorkqvist
Copy link
Contributor

Add some tests for the ICRC Index to verify that it fails parsing specific unsupported ICRC-107-related fee collector blocks, and blocks with a btype but unknown or missing tx.op fields.

@github-actions github-actions bot added the test label Dec 4, 2025
…pported-fee-collector-blocks

# Conflicts:
#	rs/ledger_suite/icrc1/index-ng/tests/tests.rs
@mbjorkqvist mbjorkqvist marked this pull request as ready for review December 5, 2025 07:40
@mbjorkqvist mbjorkqvist requested a review from a team as a code owner December 5, 2025 07:40
let index_id = install_index_ng(env, index_init_arg_without_interval(ledger_id));
let feecol_107 = account(102, 0);

let add_custom_block = |block_id: u64, tx_fields: Vec<(&str, ICRC3Value)>| {
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be extracted to a function outside the test and used by all tests - I think the only difference between the tests is adding the btype or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants