-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove skipping of certain tests (#1470)
* Remove skip 'test_get_declare_transaction' * Remove skip 'test_get_invoke_transaction' * Remove skip 'test_get_deploy_account_transaction' * Remove skip 'test_get_block_by_hash' * Remove skip 'test_multicall' * Remove skipping of several tests * Remove skipping of several tests * Remove skipping of several tests * Remove skipping of several tests * Remove skipping of several tests * Remove ledger from CI * Update 'max_fee' in 'test_declare_v2' * Skip ledger tests * Update 'max_fee' in 'test_declaring_contracts' * Add copy of map contract * Add copy of account contract * Add second copy of map contract * Fix 'lib.cairo' * Fix import * Fix import * Fix 'test_compute_sierra_class_hash' * Revert "Remove ledger from CI" This reverts commit a2efffa. * Revert "Skip ledger tests" This reverts commit 376e6fe. * Rename 'account_copy.cario' -> 'account_copy1.cairo' * Fix imports in 'lib.cairo' * Revert "Fix 'test_compute_sierra_class_hash'" This reverts commit 82a21e4. * Reapply "Remove ledger from CI" This reverts commit ec492e6. * Reapply "Skip ledger tests" This reverts commit dd560e7. * Revert "Reapply "Skip ledger tests"" This reverts commit c88cb42. * Revert "Reapply "Remove ledger from CI"" This reverts commit 203de83. * Remove unnecessary line * Rename copy fizture names * Fix lint * Rename contracts
- Loading branch information
Showing
14 changed files
with
135 additions
and
56 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
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
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
10 changes: 7 additions & 3 deletions
10
starknet_py/tests/e2e/docs/guide/test_simple_declare_and_deploy_cairo1.py
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
11 changes: 7 additions & 4 deletions
11
starknet_py/tests/e2e/docs/quickstart/test_using_account.py
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
36 changes: 36 additions & 0 deletions
36
starknet_py/tests/e2e/mock/contracts_v2/src/account_copy_1.cairo
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#[starknet::contract] | ||
mod AccountCopy1 { | ||
use openzeppelin::account::AccountComponent; | ||
use openzeppelin::introspection::src5::SRC5Component; | ||
|
||
component!(path: AccountComponent, storage: account, event: AccountEvent); | ||
component!(path: SRC5Component, storage: src5, event: SRC5Event); | ||
|
||
// This embeds all of the methods from the many AccountComponent implementations | ||
// and also includes `supports_interface` from `SRC5Impl` | ||
#[abi(embed_v0)] | ||
impl AccountMixinImpl = AccountComponent::AccountMixinImpl<ContractState>; | ||
impl AccountInternalImpl = AccountComponent::InternalImpl<ContractState>; | ||
|
||
#[storage] | ||
struct Storage { | ||
#[substorage(v0)] | ||
account: AccountComponent::Storage, | ||
#[substorage(v0)] | ||
src5: SRC5Component::Storage | ||
} | ||
|
||
#[event] | ||
#[derive(Drop, starknet::Event)] | ||
enum Event { | ||
#[flat] | ||
AccountEvent: AccountComponent::Event, | ||
#[flat] | ||
SRC5Event: SRC5Component::Event | ||
} | ||
|
||
#[constructor] | ||
fn constructor(ref self: ContractState, public_key: felt252) { | ||
self.account.initializer(public_key); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
starknet_py/tests/e2e/mock/contracts_v2/src/map_copy_1.cairo
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#[starknet::interface] | ||
trait IMap<TMapState> { | ||
fn put(ref self: TMapState, key: felt252, value: felt252); | ||
fn get(self: @TMapState, key: felt252) -> felt252; | ||
} | ||
|
||
|
||
#[starknet::contract] | ||
mod MapCopy1 { | ||
#[storage] | ||
struct Storage { | ||
storage: LegacyMap::<felt252, felt252>, | ||
} | ||
|
||
#[abi(embed_v0)] | ||
impl Map of super::IMap<ContractState> { | ||
fn put(ref self: ContractState, key: felt252, value: felt252) { | ||
self.storage.write(key, value); | ||
} | ||
|
||
fn get(self: @ContractState, key: felt252) -> felt252 { | ||
self.storage.read(key) | ||
} | ||
} | ||
} |
Oops, something went wrong.