Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Sep 9, 2023
1 parent 1415158 commit c189ee5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ This enables the potential for frequent deployment of Arcade Accounts by users d
- [ ] Auto top up of eth from Master
- [ ] General feedback and improvements around security
- [ ] Add ability for Master Account to give complex permissions. EG: Can transfer an ERC20 token to a specific address


starkli declare target/dev/arcade_account_Account.sierra.json --account ./account --keystore ./keys

# v0.1.0 hash
0x00bf5a9e6533e70a811a622eaa402724d290898c59fe7627f523893f2b2a0644
9 changes: 1 addition & 8 deletions src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,11 @@ mod Account {

#[constructor]
fn constructor(
ref self: ContractState,
_public_key: felt252,
_master_account: ContractAddress,
_whitelisted_contracts: Array<(ContractAddress, bool)>,
_whitelisted_calls: Array<(ContractAddress, felt252, bool)>
ref self: ContractState, _public_key: felt252, _master_account: ContractAddress
) {
self.initializer(_public_key);
self.master_account.write(_master_account);

_update_whitelisted_contracts(ref self, _whitelisted_contracts);
_update_whitelisted_calls(ref self, _whitelisted_calls);

let mut unsafe_state = SRC5::unsafe_new_contract_state();
SRC5::InternalTrait::register_interface(ref unsafe_state, ARCADE_ACCOUNT_ID);
}
Expand Down

0 comments on commit c189ee5

Please sign in to comment.