Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

feat: add entity batching (n-02) #32

Merged
merged 2 commits into from
Nov 11, 2024
Merged

feat: add entity batching (n-02) #32

merged 2 commits into from
Nov 11, 2024

Conversation

glihm
Copy link
Contributor

@glihm glihm commented Nov 5, 2024

No description provided.

Comment on lines +694 to +699
let salt = core::poseidon::poseidon_hash_span(
[
starknet::get_tx_info().unbox().transaction_hash,
dojo::utils::bytearray_hash(@namespace),
].span()
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we want to support multi call, using the tx hash alone is not enough. Since we can't have 2 exact same classes in the same namespace, the hash of the namespace is added to the salt.

@glihm glihm changed the title Add entity batching feat: add entity batching (n-02) Nov 5, 2024
@glihm glihm merged commit 5386dbd into main Nov 11, 2024
4 checks passed
glihm added a commit that referenced this pull request Nov 11, 2024
* feat: add model upgradeability checks

* fix: remove TODO since this code is no longer exposed in the plugin, hence can't be flatten at compile time

* feat: add entity batching (n-02) (#32)

* backport 1

* fix: fix contracts path

* fix: missing merge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant