Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(store): use _keyTupleDefinition in encodeKeyTuple #1314

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented Aug 16, 2023

originally _keyTupleDefinition rendered a call to encodeKeyTuple, but now _keyTupleDefinition is inlined and so encodeKeyTuple should use it instead

@changeset-bot
Copy link

changeset-bot bot commented Aug 16, 2023

⚠️ No Changeset found

Latest commit: 40e7f83

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dk1a dk1a force-pushed the dk1a/encodeKeyTuple branch from 0d7c609 to 40e7f83 Compare August 16, 2023 10:24
@dk1a dk1a marked this pull request as ready for review August 16, 2023 10:46
@dk1a dk1a requested review from alvrs and holic as code owners August 16, 2023 10:46
Comment on lines -138 to +140
function encodeKeyTuple(${renderArguments([_typedKeyArgs])}) internal pure returns (bytes32[] memory _keyTuple) {
_keyTuple = new bytes32[](${keyTuple.length});
${renderList(keyTuple, (key, index) => `_keyTuple[${index}] = ${renderValueTypeToBytes32(key.name, key)};`)}
function encodeKeyTuple(${renderArguments([_typedKeyArgs])}) internal pure returns (bytes32[] memory) {
${_keyTupleDefinition}
return _keyTuple;
Copy link
Member

Choose a reason for hiding this comment

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

this is the only change here correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep

@dk1a dk1a merged commit 83bc404 into main Aug 16, 2023
@dk1a dk1a deleted the dk1a/encodeKeyTuple branch August 16, 2023 12:12
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.

2 participants