Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Aug 8, 2022

This instruction was slightly tricky because of how the list of string key-value pairs is handled in the C. I made some minor changes to the implementation logic to simplify it, but they shouldn't change the semantics. Please do check that this looks right to you.

I also added my own test because we didn't have one before.

assert!(account_has_key_values(&product_account, &kvs).unwrap());

// bad size on the string
instruction_data[0] = 7;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what this test is accomplishing. You're changing the instruction discriminator.

@guibescos guibescos merged commit 4faa1f7 into main Aug 9, 2022
@guibescos guibescos deleted the upd_product branch August 9, 2022 19:40
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