Skip to content

Commit

Permalink
add master account read
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Aug 30, 2023
1 parent d6eb547 commit b6a45d3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ mod Account {
false
}
}

fn master_account(self: @ContractState) -> ContractAddress {
self.master_account.read()
}
}

#[internal]
Expand Down Expand Up @@ -402,7 +406,7 @@ mod Account {
assert(false, 'Account: Permission denied');
}

starknet::call_contract_syscall(to, selector, calldata.span()).unwrap_syscall()
starknet::call_contract_syscall(to, selector, calldata.span()).unwrap()
}


Expand All @@ -427,6 +431,6 @@ mod Account {
#[internal]
fn _execute_single_master_call(self: @ContractState, call: Call) -> Span<felt252> {
let Call{to, selector, calldata } = call;
starknet::call_contract_syscall(to, selector, calldata.span()).unwrap_syscall()
starknet::call_contract_syscall(to, selector, calldata.span()).unwrap()
}
}

0 comments on commit b6a45d3

Please sign in to comment.