-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mempool_test_utils): rename contract (#1115)
Rename: - FeatureAccount -> Contract, this was an incorrect name, since we use this abstraction for both non-accounts and accounts. This is basically an enhancement of FeatureContract, allowing to construct it from a deploy account tx, as well as through the literal constructor. - `account: Contract` -> `contract: Contract`. Also added docs to clarify this issue. Note: we still unfortunately expose `ThinStateDiffBuilder#fund()` for non-account contracts, which is only protected via an assert, but AFAICS mending this requires touchups inside FeatureContract itself, which is out of scope here. Co-Authored-By: Gilad Chase <gilad@starkware.com>
- Loading branch information
1 parent
c09e262
commit 618fafe
Showing
2 changed files
with
54 additions
and
48 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