-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4376: Fix addressable entity request r=alsrdn a=alsrdn Fix request for `AddressableEntity` when using `Key::Account`, `Key::Hash` and `Key::AddressableEntity`. We now store an `AddressableEntity` record under `Key::AddressableEntity` instead of `Key::Hash`. Also, under `Key::Account` we store a CLValue containing a `Key::AddressableEntity` which can be then used to get the addressable entity. When using `Key::Hash` we first try to get the addressable entity by running a query for `Key::AddressableEntity(PackageKindTag::SmartContract, contract_hash)`. If we can't find the entity under that key we try to read a `Contract` using the `Key::Hash`. Co-authored-by: Alexandru Sardan <alexandru@casperlabs.io>
- Loading branch information
Showing
3 changed files
with
115 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters