Skip to content

Commit

Permalink
refactor: rename l1_account_address to l1_contract_address
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Oct 7, 2023
1 parent b9c2755 commit a571f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starknet/src/voting_strategies/eth_balance_of.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod EthBalanceOfVotingStrategy {

// Decode params
let mut params = params;
let (l1_account_address, slot_index) = Serde::<(
let (l1_token_address, slot_index) = Serde::<(
EthAddress, u256
)>::deserialize(ref params)
.unwrap();
Expand All @@ -46,7 +46,7 @@ mod EthBalanceOfVotingStrategy {
// TODO: temporary until components are released
let state = SingleSlotProof::unsafe_new_contract_state();
let balance = SingleSlotProof::InternalImpl::get_storage_slot(
@state, timestamp, l1_account_address, slot_index, voter.into(), user_params
@state, timestamp, l1_token_address, slot_index, voter.into(), user_params
);
balance
}
Expand Down

0 comments on commit a571f1b

Please sign in to comment.